Separate out the "DROP" sql code. In docker, it results an error "cannot drop the currently open database".
This commit is contained in:
parent
a0725fea0b
commit
2ea481e281
5 changed files with 7 additions and 6 deletions
|
|
@ -12,7 +12,9 @@ echo Continue? "(y or n)"
|
|||
read x
|
||||
|
||||
if [ "$x" = "y" ]; then
|
||||
psql postgres -f create_db_init.sql
|
||||
psql postgres -f create_db.sql
|
||||
psql postgres -f create_db_user.sql
|
||||
psql postgres -f settings.sql
|
||||
echo Database created
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue