mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
refactor(database): drop 3 columns in a single transaction
This commit is contained in:
parent
93b17af78b
commit
8641f5f2a3
1 changed files with 4 additions and 3 deletions
|
@ -1125,9 +1125,10 @@ var migrations = []func(tx *sql.Tx, driver string) error{
|
||||||
},
|
},
|
||||||
func(tx *sql.Tx, _ string) (err error) {
|
func(tx *sql.Tx, _ string) (err error) {
|
||||||
sql := `
|
sql := `
|
||||||
ALTER TABLE integrations DROP COLUMN pocket_enabled;
|
ALTER TABLE integrations
|
||||||
ALTER TABLE integrations DROP COLUMN pocket_access_token;
|
DROP COLUMN pocket_enabled,
|
||||||
ALTER TABLE integrations DROP COLUMN pocket_consumer_key;
|
DROP COLUMN pocket_access_token,
|
||||||
|
DROP COLUMN pocket_consumer_key;
|
||||||
`
|
`
|
||||||
_, err = tx.Exec(sql)
|
_, err = tx.Exec(sql)
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue