diff --git a/migrations/20240630150936_dashboard_preferences.sql b/migrations/20240630150936_dashboard_preferences.sql index 94f7649..4f6cb64 100644 --- a/migrations/20240630150936_dashboard_preferences.sql +++ b/migrations/20240630150936_dashboard_preferences.sql @@ -80,8 +80,9 @@ ALTER TABLE reminders DROP COLUMN set_by; ALTER TABLE reminders RENAME COLUMN set_by_new TO set_by; --- Swap the tables -DROP TABLE users; +-- Swap the tables. +-- Keep the old table for now +RENAME TABLE users TO users_old; RENAME TABLE users_new TO users; SET FOREIGN_KEY_CHECKS = 1;