mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-05 07:44:05 +01:00
6 lines
217 B
Bash
Executable File
6 lines
217 B
Bash
Executable File
#!/bin/sh
|
|
|
|
psql -q -c "CREATE ROLE test WITH PASSWORD 'test' LOGIN;" -U postgres
|
|
psql -q -c 'CREATE DATABASE yii WITH OWNER = test;' -U postgres
|
|
psql -q -c 'GRANT ALL PRIVILEGES ON DATABASE yii TO test;' -U postgres
|