Add Email column to Account table

This commit is contained in:
Gent Semaj 2024-11-25 09:56:22 -08:00
parent ed9fe61faf
commit cd4e7ee159
Signed by untrusted user: ycc
GPG Key ID: 2D76C57BF6BEADC4
3 changed files with 6 additions and 1 deletions

4
sql/migration5.sql Normal file
View File

@ -0,0 +1,4 @@
BEGIN TRANSACTION;
-- New Column
ALTER TABLE Accounts ADD Email TEXT DEFAULT '' NOT NULL;
COMMIT;

View File

@ -9,6 +9,7 @@ CREATE TABLE IF NOT EXISTS Accounts (
BannedUntil INTEGER DEFAULT 0 NOT NULL,
BannedSince INTEGER DEFAULT 0 NOT NULL,
BanReason TEXT DEFAULT '' NOT NULL,
Email TEXT DEFAULT '' NOT NULL,
PRIMARY KEY(AccountID AUTOINCREMENT)
);

View File

@ -5,7 +5,7 @@
#include <string>
#include <vector>
#define DATABASE_VERSION 5
#define DATABASE_VERSION 6
namespace Database {