aboutsummaryrefslogtreecommitdiff
path: root/internal/database/migrations.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <f@miniflux.net> 2023-08-13 12:48:29 -0700
committerGravatar Frédéric Guillot <f@miniflux.net> 2023-08-13 13:32:05 -0700
commit28df0b119e8d3562ca00c6066911aa8538378175 (patch)
tree32e944c42fa3caba1cc3e4e3ffe4c948f2360eeb /internal/database/migrations.go
parent13d9d86acd988da5929da829ccd251916a9517b7 (diff)
downloadv2-28df0b119e8d3562ca00c6066911aa8538378175.tar.gz
v2-28df0b119e8d3562ca00c6066911aa8538378175.tar.zst
v2-28df0b119e8d3562ca00c6066911aa8538378175.zip
Add Shiori integration
Diffstat (limited to 'internal/database/migrations.go')
-rw-r--r--internal/database/migrations.go26
1 files changed, 18 insertions, 8 deletions
diff --git a/internal/database/migrations.go b/internal/database/migrations.go
index 10975de0..59d08012 100644
--- a/internal/database/migrations.go
+++ b/internal/database/migrations.go
@@ -709,26 +709,36 @@ var migrations = []func(tx *sql.Tx) error{
},
func(tx *sql.Tx) (err error) {
sql := `
- ALTER TABLE integrations ADD COLUMN notion_enabled bool default 'f';
- ALTER TABLE integrations ADD COLUMN notion_token text default '';
- ALTER TABLE integrations ADD COLUMN notion_page_id text default '';
+ ALTER TABLE integrations ADD COLUMN notion_enabled bool default 'f';
+ ALTER TABLE integrations ADD COLUMN notion_token text default '';
+ ALTER TABLE integrations ADD COLUMN notion_page_id text default '';
`
_, err = tx.Exec(sql)
return err
},
func(tx *sql.Tx) (err error) {
sql := `
- ALTER TABLE integrations ADD COLUMN readwise_enabled bool default 'f';
- ALTER TABLE integrations ADD COLUMN readwise_api_key text default '';
+ ALTER TABLE integrations ADD COLUMN readwise_enabled bool default 'f';
+ ALTER TABLE integrations ADD COLUMN readwise_api_key text default '';
`
_, err = tx.Exec(sql)
return err
},
func(tx *sql.Tx) (err error) {
sql := `
- ALTER TABLE integrations ADD COLUMN apprise_enabled bool default 'f';
- ALTER TABLE integrations ADD COLUMN apprise_url text default '';
- ALTER TABLE integrations ADD COLUMN apprise_services_url text default '';
+ ALTER TABLE integrations ADD COLUMN apprise_enabled bool default 'f';
+ ALTER TABLE integrations ADD COLUMN apprise_url text default '';
+ ALTER TABLE integrations ADD COLUMN apprise_services_url text default '';
+ `
+ _, err = tx.Exec(sql)
+ return err
+ },
+ func(tx *sql.Tx) (err error) {
+ sql := `
+ ALTER TABLE integrations ADD COLUMN shiori_enabled bool default 'f';
+ ALTER TABLE integrations ADD COLUMN shiori_url text default '';
+ ALTER TABLE integrations ADD COLUMN shiori_username text default '';
+ ALTER TABLE integrations ADD COLUMN shiori_password text default '';
`
_, err = tx.Exec(sql)
return err