-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Email and LastPasswordReset columns to Account table (#299)
* Add Email column to Account table * Add LastPasswordReset timestamp column, missing DB version bump
- Loading branch information
1 parent
ed9fe61
commit 36e0667
Showing
3 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
BEGIN TRANSACTION; | ||
-- New Columns | ||
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters