Keep the old users table temporarily

This commit is contained in:
jude 2024-09-22 11:20:31 +01:00
parent 9fbe5dcd13
commit 2d9946093a

View File

@ -80,8 +80,9 @@ ALTER TABLE reminders
DROP COLUMN set_by; DROP COLUMN set_by;
ALTER TABLE reminders RENAME COLUMN set_by_new TO set_by; ALTER TABLE reminders RENAME COLUMN set_by_new TO set_by;
-- Swap the tables -- Swap the tables.
DROP TABLE users; -- Keep the old table for now
RENAME TABLE users TO users_old;
RENAME TABLE users_new TO users; RENAME TABLE users_new TO users;
SET FOREIGN_KEY_CHECKS = 1; SET FOREIGN_KEY_CHECKS = 1;