Update database initialization script
parent
8bf2b8a275
commit
dd85df48c5
|
@ -37,6 +37,7 @@ CREATE TABLE IF NOT EXISTS accounts.users(
|
||||||
email TEXT UNIQUE NOT NULL,
|
email TEXT UNIQUE NOT NULL,
|
||||||
password TEXT NOT NULL,
|
password TEXT NOT NULL,
|
||||||
admin BOOLEAN NOT NULL DEFAULT FALSE,
|
admin BOOLEAN NOT NULL DEFAULT FALSE,
|
||||||
|
full_name TEXT NOT NULL,
|
||||||
PRIMARY KEY(user_id)
|
PRIMARY KEY(user_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -110,4 +111,13 @@ CREATE TABLE IF NOT EXISTS scores.games(
|
||||||
REFERENCES accounts.users(user_id)
|
REFERENCES accounts.users(user_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS metadata(
|
||||||
|
property TEXT UNIQUE NOT NULL,
|
||||||
|
value TEXT NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
|
INSERT INTO metadata(property, value)
|
||||||
|
VALUES("latest_migration", "2");
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
Reference in New Issue