Update init sql scripts

This commit is contained in:
Ari Timonen 2020-11-17 03:36:15 +02:00
parent 92595cea70
commit 09182ead24
2 changed files with 4 additions and 13 deletions

View file

@ -1,4 +1,7 @@
-- FIXME: this should be somewhere else probably
CREATE DATABASE IF NOT EXISTS ensl_production;
GRANT ALL PRIVILEGES ON ensl_production.* TO 'ensl'@'%' WITH GRANT OPTION;
CREATE DATABASE IF NOT EXISTS ensl_development;
GRANT ALL PRIVILEGES ON ensl_development.* TO 'ensl'@'%' WITH GRANT OPTION;
@ -6,4 +9,4 @@ 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;
GRANT ALL PRIVILEGES ON ensl_staging.* TO 'ensl'@'%' WITH GRANT OPTION;

View file

@ -1,12 +0,0 @@
-- 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;