mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-12-22 19:30:05 +00:00
Add LastPasswordReset timestamp column, missing DB version bump
This commit is contained in:
parent
cd4e7ee159
commit
7dc43ddd6f
@ -1,4 +1,8 @@
|
|||||||
BEGIN TRANSACTION;
|
BEGIN TRANSACTION;
|
||||||
-- New Column
|
-- New Columns
|
||||||
ALTER TABLE Accounts ADD Email TEXT DEFAULT '' NOT NULL;
|
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';
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
@ -10,6 +10,7 @@ CREATE TABLE IF NOT EXISTS Accounts (
|
|||||||
BannedSince INTEGER DEFAULT 0 NOT NULL,
|
BannedSince INTEGER DEFAULT 0 NOT NULL,
|
||||||
BanReason TEXT DEFAULT '' NOT NULL,
|
BanReason TEXT DEFAULT '' NOT NULL,
|
||||||
Email TEXT DEFAULT '' NOT NULL,
|
Email TEXT DEFAULT '' NOT NULL,
|
||||||
|
LastPasswordReset INTEGER DEFAULT 0 NOT NULL,
|
||||||
PRIMARY KEY(AccountID AUTOINCREMENT)
|
PRIMARY KEY(AccountID AUTOINCREMENT)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user