Rollback
The rollback command allows you to rollback the last migration.
To rollback the last migration, run the following command:
amigo rollback
------> rollback: create_user_table version: 20240524110434
-- drop_table(table: users)
------> version rolled back: 20240524090434
Flags
--dry-runwill run the migrations without applying them.--timeoutis the timeout for the migration (default is 2m0s).--versionwill rollback a specific version. The format is20240502083700or20240502083700_name.go.--stepswill rollback the lastnmigrations. (default is 1)--continue-on-errorwill not rollback the migration if an error occurs.-ddump the schema after migrating