taxi builder
This commit is contained in:
@@ -234,6 +234,28 @@ import_aoe_loot_sql() {
|
||||
import_sql_file "acore_world" "$aoe_loot_sql_file"
|
||||
}
|
||||
|
||||
import_taxi_builder_sql() {
|
||||
# Source-of-truth tables for the Taxi Route Builder. The migration also
|
||||
# lives in data/sql/updates/pending_db_world/ for AzerothCore DBUpdater,
|
||||
# but we apply it eagerly here so deploy flows that don't rely on the
|
||||
# worldserver-side updater still bootstrap correctly.
|
||||
local taxi_builder_sql_file="$ROOT_DIR/data/sql/updates/pending_db_world/rev_1778279831177904414.sql"
|
||||
|
||||
if [[ ! -f "$taxi_builder_sql_file" ]]; then
|
||||
log "taxi-builder migration not found, skipped"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if table_exists "acore_world" "custom_taxi_nodes" \
|
||||
&& table_exists "acore_world" "custom_taxi_paths" \
|
||||
&& table_exists "acore_world" "custom_taxi_path_nodes"; then
|
||||
log "taxi-builder tables already exist, skipping"
|
||||
return 0
|
||||
fi
|
||||
|
||||
import_sql_file "acore_world" "$taxi_builder_sql_file"
|
||||
}
|
||||
|
||||
if (($# > 0)); then
|
||||
case "$1" in
|
||||
-h|--help)
|
||||
@@ -260,6 +282,7 @@ fi
|
||||
|
||||
import_mythicplus_sql
|
||||
import_aoe_loot_sql
|
||||
import_taxi_builder_sql
|
||||
import_store_sql
|
||||
|
||||
log "custom SQL bootstrap completed"
|
||||
|
||||
Reference in New Issue
Block a user