mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
15 lines
395 B
Bash
15 lines
395 B
Bash
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;'
|