-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a038e1
commit c4a7fb2
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
create user {{cookiecutter.database_user}} with createdb password '{{cookiecutter.database_password}}'; | ||
create database {{cookiecutter.database_name}}; | ||
grant all on database {{cookiecutter.database_name}} to {{cookiecutter.database_user}}; | ||
GRANT ALL ON SCHEMA public to {{cookiecutter.database_user}}; | ||
CREATE user {{cookiecutter.database_user}} WITH createdb PASSWORD '{{cookiecutter.database_password}}'; | ||
CREATE DATABASE {{cookiecutter.database_name}}; | ||
GRANT ALL ON DATABASE {{cookiecutter.database_name}} TO {{cookiecutter.database_user}}; | ||
GRANT ALL ON SCHEMA public TO {{cookiecutter.database_user}}; | ||
|
||
ALTER DATABASE {{cookiecutter.database_name}} OWNER TO {{cookiecutter.database_user}}; |