mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-04-27 17:16:31 +00:00
Removed db migrations from script
This commit is contained in:
parent
a6190fe29d
commit
b1e700e2a2
@ -80,17 +80,6 @@ function fdb_to_sqlite() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_db_migrations() {
|
|
||||||
(
|
|
||||||
cd /app/migrations/dlu
|
|
||||||
readarray -d '' entries < <(printf '%s\0' *.sql | sort -zV)
|
|
||||||
for entry in "${entries[@]}"; do
|
|
||||||
echo "Execute $entry"
|
|
||||||
mysql -h"$DATABASE_HOST" -P"$DATABASE_PORT" -u"$DATABASE_USER" -p"$DATABASE_PASSWORD" $DATABASE < $entry
|
|
||||||
done
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
set_defaults
|
set_defaults
|
||||||
|
|
||||||
check_sql_connection
|
check_sql_connection
|
||||||
@ -118,8 +107,6 @@ symlink_client_files
|
|||||||
|
|
||||||
fdb_to_sqlite
|
fdb_to_sqlite
|
||||||
|
|
||||||
run_db_migrations
|
|
||||||
|
|
||||||
echo "Start MasterServer"
|
echo "Start MasterServer"
|
||||||
|
|
||||||
./MasterServer
|
./MasterServer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user