mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
* Silly test * Add better debugging, try starting service * Try stopping and re-starting the mysql service, the old way * Check status before running MySQL command * Now that indeed mysql is not started, make it start * [DEV-190] Try removing background-running of make run * Ignore mysql service when not running at the beginning * [DEV-190] Mount folder with instructions on how to initialize * [DEV-190] Go back to using normal make run * Adding -v command to mount volume with init scripts * Remove SSH terminal to Github Actions instance * Remove enabling of MySQL * Remove unnecessary parts from Makefile
9 lines
297 B
Bash
Executable File
9 lines
297 B
Bash
Executable File
#!/bin/bash
|
|
# DELETE ALL TABLES
|
|
TABLES=$(mysql --host ${MYSQL_HOST} --port ${MYSQL_PORT} -u root development -e "SHOW TABLES IN development;" | awk '{ print $1}' | grep -v '^Tables')
|
|
|
|
for t in $TABLES
|
|
do
|
|
mysql --host ${MYSQL_HOST} --port ${MYSQL_PORT} -u root development -e "DROP TABLE $t"
|
|
done
|