This commit is contained in:
2026-03-09 21:50:11 +04:00
parent ab723de95f
commit feceaab626
4 changed files with 55 additions and 11 deletions
+20 -1
View File
@@ -20,7 +20,8 @@ usage() {
Usage: $(basename "$0")
Imports required custom SQL that lives outside the normal AzerothCore module paths.
Currently this bootstraps the MythicPlus and Store Lua packages.
Currently this bootstraps the MythicPlus and Store Lua packages, plus module strings
that are not covered by the normal module SQL import path in this deployment.
EOF
}
@@ -216,6 +217,23 @@ import_store_sql() {
rm -f "$temp_sql"
}
import_aoe_loot_sql() {
local aoe_loot_sql_file="$ROOT_DIR/modules/mod-aoe-loot/data/sql/db-world/base/aoe_loot_module_string.sql"
if [[ ! -f "$aoe_loot_sql_file" ]]; then
log "mod-aoe-loot module string SQL not found, skipped"
return 0
fi
if [[ "$(mysql_query "acore_world" "SELECT COUNT(*) FROM module_string WHERE module = 'mod-aoe-loot';")" != "0" ]] && \
[[ "$(mysql_query "acore_world" "SELECT COUNT(*) FROM module_string_locale WHERE module = 'mod-aoe-loot';")" != "0" ]]; then
log "mod-aoe-loot module strings already exist, skipping"
return 0
fi
import_sql_file "acore_world" "$aoe_loot_sql_file"
}
if (($# > 0)); then
case "$1" in
-h|--help)
@@ -241,6 +259,7 @@ if ! docker compose ps --status running --services | grep -qx 'ac-database'; the
fi
import_mythicplus_sql
import_aoe_loot_sql
import_store_sql
log "custom SQL bootstrap completed"