aboutsummaryrefslogtreecommitdiff
path: root/internal/database/migrations.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <f@miniflux.net> 2024-07-13 16:52:30 -0700
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-07-13 17:51:17 -0700
commit968355f9b97eaf1e34671bdb65d55c1ec0c66e35 (patch)
tree93b1e55bbcbd108e6afd2f56761c385e20e3074a /internal/database/migrations.go
parent3ca52c7f7fa795d409e572d227d678b395f1f9b1 (diff)
downloadv2-968355f9b97eaf1e34671bdb65d55c1ec0c66e35.tar.gz
v2-968355f9b97eaf1e34671bdb65d55c1ec0c66e35.tar.zst
v2-968355f9b97eaf1e34671bdb65d55c1ec0c66e35.zip
feat(integration): add ntfy integration
Diffstat (limited to 'internal/database/migrations.go')
-rw-r--r--internal/database/migrations.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/internal/database/migrations.go b/internal/database/migrations.go
index 0952a011..2ad4f1bf 100644
--- a/internal/database/migrations.go
+++ b/internal/database/migrations.go
@@ -921,4 +921,20 @@ var migrations = []func(tx *sql.Tx) error{
_, err = tx.Exec(sql)
return err
},
+ func(tx *sql.Tx) (err error) {
+ sql := `
+ ALTER TABLE integrations ADD COLUMN ntfy_enabled bool default 'f';
+ ALTER TABLE integrations ADD COLUMN ntfy_url text default '';
+ ALTER TABLE integrations ADD COLUMN ntfy_topic text default '';
+ ALTER TABLE integrations ADD COLUMN ntfy_api_token text default '';
+ ALTER TABLE integrations ADD COLUMN ntfy_username text default '';
+ ALTER TABLE integrations ADD COLUMN ntfy_password text default '';
+ ALTER TABLE integrations ADD COLUMN ntfy_icon_url text default '';
+
+ ALTER TABLE feeds ADD COLUMN ntfy_enabled bool default 'f';
+ ALTER TABLE feeds ADD COLUMN ntfy_priority int default '3';
+ `
+ _, err = tx.Exec(sql)
+ return err
+ },
}