mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Add a setup script for DB
This commit is contained in:
parent
a9e016f68a
commit
4ff9a1fc20
1 changed files with 12 additions and 0 deletions
12
db/initdb.d/99_ensl.setup.sql
Normal file
12
db/initdb.d/99_ensl.setup.sql
Normal 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;
|
Loading…
Reference in a new issue