From 89aad30a177a512ef3984699202c26d8c5cd1f89 Mon Sep 17 00:00:00 2001 From: Radhi Fadlillah Date: Thu, 29 Aug 2019 09:45:45 +0700 Subject: [PATCH] Fix: missing column while updating database --- internal/database/sqlite.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/database/sqlite.go b/internal/database/sqlite.go index 2cc15f3..ef561d5 100644 --- a/internal/database/sqlite.go +++ b/internal/database/sqlite.go @@ -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)