diff --git a/db/migrations/20241227222849_duplicate.go b/db/migrations/20241227222849_duplicate.go index 6121ad7ef..3cc270696 100644 --- a/db/migrations/20241227222849_duplicate.go +++ b/db/migrations/20241227222849_duplicate.go @@ -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 +} } \ No newline at end of file