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:
parent
a0e517c224
commit
b9c467558c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user