add downgrade (#4)

This commit is contained in:
laker-93 2025-04-17 09:08:50 +01:00 committed by GitHub
parent b3ded07500
commit 8a08a2ea6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,11 @@ alter table media_file
}
func downDuplicate(ctx context.Context, tx *sql.Tx) error {
// This code is executed when the migration is rolled back.
return nil
_, err := tx.Exec(`
alter table media_file
drop column is_duplicate;
`)
return err
}
}