Skip to content

Commit

Permalink
Fix: missing column while updating database
Browse files Browse the repository at this point in the history
  • Loading branch information
RadhiFadlillah committed Aug 29, 2019
1 parent af2949b commit 89aad30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/database/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 89aad30

Please sign in to comment.