Compare commits

..

1 Commits

Author SHA1 Message Date
Matthew Kilgore
473027c1ae Fix notifiers gettings wiped 2025-12-26 17:27:18 -05:00

View File

@@ -1,4 +1,6 @@
-- +goose Up
-- +goose no transaction
PRAGMA foreign_keys=OFF;
-- SQLite doesn't support ALTER COLUMN directly, so we need to recreate the table
-- Create a temporary table with the new schema
CREATE TABLE users_temp (
@@ -29,4 +31,5 @@ DROP TABLE users;
ALTER TABLE users_temp RENAME TO users;
-- Recreate the unique index
CREATE UNIQUE INDEX users_email_key on users (email);
CREATE UNIQUE INDEX users_email_key on users (email);
PRAGMA foreign_keys=ON;