Skip to content

Commit cd4e7ee

Browse files
Add Email column to Account table
1 parent ed9fe61 commit cd4e7ee

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

sql/migration5.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
BEGIN TRANSACTION;
2+
-- New Column
3+
ALTER TABLE Accounts ADD Email TEXT DEFAULT '' NOT NULL;
4+
COMMIT;

sql/tables.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CREATE TABLE IF NOT EXISTS Accounts (
99
BannedUntil INTEGER DEFAULT 0 NOT NULL,
1010
BannedSince INTEGER DEFAULT 0 NOT NULL,
1111
BanReason TEXT DEFAULT '' NOT NULL,
12+
Email TEXT DEFAULT '' NOT NULL,
1213
PRIMARY KEY(AccountID AUTOINCREMENT)
1314
);
1415

src/db/Database.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <string>
66
#include <vector>
77

8-
#define DATABASE_VERSION 5
8+
#define DATABASE_VERSION 6
99

1010
namespace Database {
1111

0 commit comments

Comments
 (0)