golang-migrate has support for forcing a specific version via migrate force <N>. This is useful when creating migrations for an already existing schema, as you can create a migration representing the current state and force the version to that (as it techincally already is).
Manually creating and setting the version in the schema version table is one option, but a force command would be nice.
golang-migrate has support for forcing a specific version via
migrate force <N>. This is useful when creating migrations for an already existing schema, as you can create a migration representing the current state and force the version to that (as it techincally already is).Manually creating and setting the version in the schema version table is one option, but a force command would be nice.