Add a setup script for DB

This commit is contained in:
Ari Timonen 2020-11-08 17:16:00 +01:00
parent a9e016f68a
commit 4ff9a1fc20

View file

@ -0,0 +1,12 @@
-- FIXME: this should be somewhere else probably
CREATE DATABASE IF NOT EXISTS ensl;
GRANT ALL PRIVILEGES ON ensl.* TO 'ensl'@'%' WITH GRANT OPTION;
CREATE DATABASE IF NOT EXISTS ensl_development;
GRANT ALL PRIVILEGES ON ensl_development.* TO 'ensl'@'%' WITH GRANT OPTION;
CREATE DATABASE IF NOT EXISTS ensl_test;
GRANT ALL PRIVILEGES ON ensl_test.* TO 'ensl'@'%' WITH GRANT OPTION;
CREATE DATABASE IF NOT EXISTS ensl_staging;
GRANT ALL PRIVILEGES ON ensl_staging.* TO 'ensl'@'%' WITH GRANT OPTION;