docker-ckan/docker-entrypoint-initdb.d/10_create_datastore.sql

4 lines
228 B
MySQL
Raw Normal View History

2021-10-29 13:58:24 +02:00
\set datastore_ro_password '\'' `echo $DATASTORE_READONLY_PASSWORD` '\''
CREATE ROLE datastore_ro NOSUPERUSER NOCREATEDB NOCREATEROLE LOGIN PASSWORD :datastore_ro_password;
CREATE DATABASE datastore OWNER ckan ENCODING 'utf-8';