BlueForge Docs

forge db-register-migration

Register a migration file as already applied (without running it).

Command

forge db-register-migration <migration-name>

Arguments

NameTypeRequiredNotes
migration-name
stringyesMigration file name or identifier

Flags

None.

Examples

forge db-register-migration 20260720_add_users_table
# → Registered: 20260720_add_users_table

Errors

Exit codeMeaning
0Registered successfully
1Failed to register

Pitfalls

  • No execution — this does NOT run the migration SQL; it only marks it as applied in the migration tracking table.

See also

{auto-injected}

Tested against

{auto-injected}