mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
separate docker-db from init-db
so we don't need docker on Travis
This commit is contained in:
14
test-db-upgrade/init-db.sh
Normal file
14
test-db-upgrade/init-db.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
set -e
|
||||
|
||||
MYSQL="mysql --user root -e "
|
||||
PSQL="psql --user postgres -c "
|
||||
|
||||
set -x
|
||||
|
||||
# drop databases if they don't exist
|
||||
$MYSQL 'DROP DATABASE jupyterhub_upgrade' 2>/dev/null || true
|
||||
$PSQL 'DROP DATABASE jupyterhub_upgrade' 2>/dev/null || true
|
||||
|
||||
# create the databases
|
||||
$MYSQL 'CREATE DATABASE jupyterhub_upgrade CHARACTER SET utf8 COLLATE utf8_general_ci;'
|
||||
$PSQL 'CREATE DATABASE jupyterhub_upgrade;'
|
Reference in New Issue
Block a user