mirror of
https://github.com/go-shiori/shiori.git
synced 2025-01-16 12:57:58 +08:00
Fix: missing column while updating database
This commit is contained in:
parent
af2949b2d9
commit
89aad30a17
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue