forge db-register-migration
Register a migration file as already applied (without running it).
Command
forge db-register-migration <migration-name>
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
| string | yes | Migration file name or identifier |
Flags
None.
Examples
forge db-register-migration 20260720_add_users_table
# → Registered: 20260720_add_users_table
Errors
| Exit code | Meaning |
|---|---|
| 0 | Registered successfully |
| 1 | Failed 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}