From dd85df48c5db8e40dc379ceaaaa318f4db9cb14e Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Wed, 1 Dec 2021 11:15:13 -0700 Subject: [PATCH] Update database initialization script --- database/init_database.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/database/init_database.sql b/database/init_database.sql index 404addf..83ff6c4 100644 --- a/database/init_database.sql +++ b/database/init_database.sql @@ -37,6 +37,7 @@ CREATE TABLE IF NOT EXISTS accounts.users( email TEXT UNIQUE NOT NULL, password TEXT NOT NULL, admin BOOLEAN NOT NULL DEFAULT FALSE, + full_name TEXT NOT NULL, PRIMARY KEY(user_id) ); @@ -110,4 +111,13 @@ CREATE TABLE IF NOT EXISTS scores.games( 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; \ No newline at end of file