Fix: missing column while updating database

This commit is contained in:
Radhi Fadlillah 2019-08-29 09:45:45 +07:00
parent af2949b2d9
commit 89aad30a17

View file

@ -75,6 +75,7 @@ func OpenSQLiteDatabase(databasePath string) (sqliteDB *SQLiteDatabase, err erro
// Alter table if needed
tx.Exec(`ALTER TABLE account ADD COLUMN owner INTEGER NOT NULL DEFAULT 0`)
tx.Exec(`ALTER TABLE bookmark ADD COLUMN public INTEGER NOT NULL DEFAULT 0`)
err = tx.Commit()
checkError(err)