From a5d0ada52f0985ffb95e00bd62c9c80ca3b63f18 Mon Sep 17 00:00:00 2001
From: Ossi Laine <ossi.laine@utu.fi>
Date: Mon, 29 Jul 2019 15:42:34 +0300
Subject: [PATCH] Instructions to sql initialization script

---
 create_rating_db.sql | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/create_rating_db.sql b/create_rating_db.sql
index e63e75c..ed3f430 100644
--- a/create_rating_db.sql
+++ b/create_rating_db.sql
@@ -1,7 +1,10 @@
 /* 
-MYSQL script
+SQL initialization script
 
 Run: mysql -u rating -p -D rating_db < create_rating_db.sql
+
+This will create user 'admin' with password 'password'.
+
 */
 
 /* Drop all tables (cascade removes foreign keys also) */
@@ -190,4 +193,4 @@ ALTER TABLE experiment ADD COLUMN (embody_enabled BOOLEAN DEFAULT 0);
 /* Set current answer type (embody/slider/etc..) so returning users are routed to correct question */ 
 ALTER TABLE answer_set ADD COLUMN (answer_type VARCHAR(120));
 
-INSERT INTO user VALUES(1,'admin',NULL,'pbkdf2:sha256:50000$6Cc6Mjmo$3fe413a88db1bacfc4d617f7c1547bd1ea4cbd6c5d675a58e78332201f6befc6');
\ No newline at end of file
+INSERT INTO user VALUES(1,'admin',NULL,'pbkdf2:sha256:50000$6Cc6Mjmo$3fe413a88db1bacfc4d617f7c1547bd1ea4cbd6c5d675a58e78332201f6befc6');
-- 
GitLab