OpenFusion/sql/migration5.sql

9 lines
331 B
MySQL
Raw Normal View History

2024-11-25 17:56:22 +00:00
BEGIN TRANSACTION;
-- New Columns
2024-11-25 17:56:22 +00:00
ALTER TABLE Accounts ADD Email TEXT DEFAULT '' NOT NULL;
ALTER TABLE Accounts ADD LastPasswordReset INTEGER DEFAULT 0 NOT NULL;
-- Update DB Version
UPDATE Meta SET Value = 6 WHERE Key = 'DatabaseVersion';
UPDATE Meta SET Value = strftime('%s', 'now') WHERE Key = 'LastMigration';
2024-11-25 17:56:22 +00:00
COMMIT;