From 2d9946093a2b49ec4fbad24cce7e62263de076d6 Mon Sep 17 00:00:00 2001 From: jude Date: Sun, 22 Sep 2024 11:20:31 +0100 Subject: [PATCH] Keep the old users table temporarily --- migrations/20240630150936_dashboard_preferences.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;