diff options
author | 2023-09-08 22:45:17 -0700 | |
---|---|---|
committer | 2023-09-09 13:11:42 -0700 | |
commit | 48f6885f4472efbe0e23f990ae8d4545f9a6a73d (patch) | |
tree | a05b35013e65f95013f90006b07870ddaeaf4065 /internal/database/migrations.go | |
parent | 32d33104a4934771ca99b1bcfe55bd0e4e88809b (diff) | |
download | v2-48f6885f4472efbe0e23f990ae8d4545f9a6a73d.tar.gz v2-48f6885f4472efbe0e23f990ae8d4545f9a6a73d.tar.zst v2-48f6885f4472efbe0e23f990ae8d4545f9a6a73d.zip |
Add generic webhook integration
Diffstat (limited to 'internal/database/migrations.go')
-rw-r--r-- | internal/database/migrations.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/database/migrations.go b/internal/database/migrations.go index 4830acd1..e485243b 100644 --- a/internal/database/migrations.go +++ b/internal/database/migrations.go @@ -758,4 +758,13 @@ var migrations = []func(tx *sql.Tx) error{ `) return err }, + func(tx *sql.Tx) (err error) { + sql := ` + ALTER TABLE integrations ADD COLUMN webhook_enabled bool default 'f'; + ALTER TABLE integrations ADD COLUMN webhook_url text default ''; + ALTER TABLE integrations ADD COLUMN webhook_secret text default ''; + ` + _, err = tx.Exec(sql) + return err + }, } |