initial devcontainer setup
This commit is contained in:
commit
b9b7aa6a08
14 changed files with 411 additions and 0 deletions
13
.devcontainer/nuke_db.sh
Executable file
13
.devcontainer/nuke_db.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
|
||||
echo " - Clearing existing objects"
|
||||
# Clean existing objects using schema drop
|
||||
psql -d ${PGDATABASE} -v ON_ERROR_STOP=1 <<-EOSQL > /dev/null 2>&1
|
||||
DROP SCHEMA PUBLIC CASCADE;
|
||||
CREATE SCHEMA PUBLIC;
|
||||
EOSQL
|
||||
|
||||
echo "Database nuked successfully"
|
Loading…
Add table
Add a link
Reference in a new issue