make easier to reconfigure

This commit is contained in:
Brandon Thomas committed 2021-06-27 18:07:53 -04:00
1 parent 9515a8c3cc
commit e302fe834c
1 file changed
+10 -6
+10 -6
View File
@@ -1,19 +1,23 @@
#!/bin/bash
# ONLY FOR LOCAL DEV
USERNAME='storyteller'
PASSWORD='password'
HOST='localhost'
# --default-character-set=UTF8mb4 \
echo 'Inserting System User Roles...'
mysql -u storyteller \
-ppassword \
-h localhost \
mysql -u "${USERNAME}" \
-p${PASSWORD} \
-h $HOST \
-D storyteller \
-e "source ./seed/sql/system_roles.sql"
echo 'Inserting Badges...'
mysql -u storyteller \
-ppassword \
-h localhost \
mysql -u $USERNAME \
-p${PASSWORD} \
-h $HOST \
-D storyteller \
-e "source ./seed/sql/user_badges.sql"