Skip to content

Commit

Permalink
Add Email column to Account table
Browse files Browse the repository at this point in the history
  • Loading branch information
yungcomputerchair committed Nov 25, 2024
1 parent ed9fe61 commit cd4e7ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions sql/migration5.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
BEGIN TRANSACTION;
-- New Column
ALTER TABLE Accounts ADD Email TEXT DEFAULT '' NOT NULL;
COMMIT;
1 change: 1 addition & 0 deletions sql/tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);

Expand Down
2 changes: 1 addition & 1 deletion src/db/Database.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <string>
#include <vector>

#define DATABASE_VERSION 5
#define DATABASE_VERSION 6

namespace Database {

Expand Down

0 comments on commit cd4e7ee

Please sign in to comment.