Commit a5d0ada5 authored by Ossi Laine's avatar Ossi Laine
Browse files

Instructions to sql initialization script

parent 878a5714
/*
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');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment