diff --git a/sql/migration5.sql b/sql/migration5.sql new file mode 100644 index 0000000..ba5dc89 --- /dev/null +++ b/sql/migration5.sql @@ -0,0 +1,4 @@ +BEGIN TRANSACTION; +-- New Column +ALTER TABLE Accounts ADD Email TEXT DEFAULT '' NOT NULL; +COMMIT; diff --git a/sql/tables.sql b/sql/tables.sql index 70b3169..490656a 100644 --- a/sql/tables.sql +++ b/sql/tables.sql @@ -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) ); diff --git a/src/db/Database.hpp b/src/db/Database.hpp index 151d595..57bc3bf 100644 --- a/src/db/Database.hpp +++ b/src/db/Database.hpp @@ -5,7 +5,7 @@ #include #include -#define DATABASE_VERSION 5 +#define DATABASE_VERSION 6 namespace Database {