DROP DATABASE IF EXISTS ${nuxeo.db.name};

DROP ROLE IF EXISTS ${nuxeo.db.user};

CREATE ROLE ${nuxeo.db.user} LOGIN PASSWORD '${nuxeo.db.password}' NOINHERIT VALID UNTIL 'infinity';

CREATE DATABASE ${nuxeo.db.name} WITH ENCODING='UTF8' OWNER=${nuxeo.db.user};
