1
0
mirror of https://github.com/writeas/writefreely synced 2025-01-22 10:29:52 +01:00

Return transaction Begin error in v9 migration

This commit is contained in:
Matt Baer 2020-05-06 14:08:25 -04:00
parent a0e517c224
commit b9c467558c

View File

@ -12,6 +12,10 @@ package migrations
func optimizeDrafts(db *datastore) error {
t, err := db.Begin()
if err != nil {
t.Rollback()
return err
}
_, err = t.Exec(`ALTER TABLE posts ADD INDEX(owner_id, id)`)
if err != nil {