fix: remove explicit transaction from migration 012

Goose wraps each migration in a transaction automatically.
Explicit BEGIN TRANSACTION/COMMIT caused a nested transaction
error in SQLite.
This commit is contained in:
2026-05-13 13:46:44 +02:00
parent 27a1017c5d
commit 3f6da13299

View File

@@ -1,8 +1,6 @@
-- +goose Up
PRAGMA foreign_keys = OFF;
BEGIN TRANSACTION;
CREATE TABLE user_new (
id TEXT PRIMARY KEY,
username TEXT NOT NULL UNIQUE,
@@ -18,8 +16,6 @@ DROP TABLE user;
ALTER TABLE user_new RENAME TO user;
COMMIT;
PRAGMA foreign_keys = ON;
-- +goose Down