From 8641f5f2a3e7fc139ce53ae55a6383fd8411f285 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 21 Jun 2025 01:03:44 +0200 Subject: [PATCH] refactor(database): drop 3 columns in a single transaction --- internal/database/migrations.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/database/migrations.go b/internal/database/migrations.go index 17dbb0ec..e5faec42 100644 --- a/internal/database/migrations.go +++ b/internal/database/migrations.go @@ -1125,9 +1125,10 @@ var migrations = []func(tx *sql.Tx, driver string) error{ }, func(tx *sql.Tx, _ string) (err error) { sql := ` - ALTER TABLE integrations DROP COLUMN pocket_enabled; - ALTER TABLE integrations DROP COLUMN pocket_access_token; - ALTER TABLE integrations DROP COLUMN pocket_consumer_key; + ALTER TABLE integrations + DROP COLUMN pocket_enabled, + DROP COLUMN pocket_access_token, + DROP COLUMN pocket_consumer_key; ` _, err = tx.Exec(sql) return err