Fix trigger name

This commit is contained in:
Jan-Lukas Else 2020-11-15 00:05:35 +01:00
parent 23863d03e9
commit 3584171f75
1 changed files with 10 additions and 0 deletions

View File

@ -39,6 +39,16 @@ func migrateDb() error {
return err
},
},
&migrator.Migration{
Name: "00003",
Func: func(tx *sql.Tx) error {
_, err := tx.Exec(`
DROP TRIGGER AFTER;
CREATE TRIGGER trigger_posts_delete_pp AFTER DELETE on posts BEGIN delete from post_parameters where path = old.path; END;
`)
return err
},
},
),
)
if err != nil {