#1123·goose

`goose up -fake` to mark migration as applied without running it

Author: KangarouxCreated Sep 17, 2026Updated Sep 17, 2026

Useful if the migration is already applied to the DB and isn't idempotent.

Example:

  • I do some prototyping in psql and apply the changes
  • I copy the changes into a migration file
  • The migration either takes a while or isn't idempotent and shouldn't be applied again

The workaround is to just add the new row in the goose_db_version table. A CLI flag would be a nice convenience for the rare times this is needed.