mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Remove plaintext Fever password from database
This commit is contained in:
parent
93f90dae68
commit
37bc451741
8 changed files with 23 additions and 24 deletions
|
@ -12,7 +12,7 @@ import (
|
|||
"miniflux.app/logger"
|
||||
)
|
||||
|
||||
const schemaVersion = 38
|
||||
const schemaVersion = 39
|
||||
|
||||
// Migrate executes database migrations.
|
||||
func Migrate(db *sql.DB) {
|
||||
|
|
|
@ -192,6 +192,8 @@ create index entries_user_feed_idx on entries (user_id, feed_id);
|
|||
"schema_version_36": `CREATE INDEX entries_feed_id_status_hash_idx ON entries USING btree (feed_id, status, hash);`,
|
||||
"schema_version_37": `CREATE INDEX entries_user_id_status_starred_idx ON entries (user_id, status, starred);`,
|
||||
"schema_version_38": `alter table users add column entry_swipe boolean default 't';
|
||||
`,
|
||||
"schema_version_39": `ALTER TABLE integrations DROP COLUMN fever_password;
|
||||
`,
|
||||
"schema_version_4": `create type entry_sorting_direction as enum('asc', 'desc');
|
||||
alter table users add column entry_direction entry_sorting_direction default 'asc';
|
||||
|
@ -254,6 +256,7 @@ var SqlMapChecksums = map[string]string{
|
|||
"schema_version_36": "8164be7818268ad3d4bdcad03a7868b58e32b27cde9b4f056cd82f7b182a0722",
|
||||
"schema_version_37": "fc9eb1b452341664ddf24c1a9cf01502ac2578136e54a4853081652959285cb9",
|
||||
"schema_version_38": "e91d2f4075ceb7b8a16a25f350f36dee12cfd1ad86b8b6414c4cf2e9a003358c",
|
||||
"schema_version_39": "b0f90b97502921d4681a07c64d180a91a0b4ccac7d3c1dbe30519ad6f1bf1737",
|
||||
"schema_version_4": "216ea3a7d3e1704e40c797b5dc47456517c27dbb6ca98bf88812f4f63d74b5d9",
|
||||
"schema_version_5": "46397e2f5f2c82116786127e9f6a403e975b14d2ca7b652a48cd1ba843e6a27c",
|
||||
"schema_version_6": "9d05b4fb223f0e60efc716add5048b0ca9c37511cf2041721e20505d6d798ce4",
|
||||
|
|
1
database/sql/schema_version_39.sql
Normal file
1
database/sql/schema_version_39.sql
Normal file
|
@ -0,0 +1 @@
|
|||
ALTER TABLE integrations DROP COLUMN fever_password;
|
Loading…
Add table
Add a link
Reference in a new issue