Prevent foreign key constraint errors

This commit is contained in:
Vortrex
2022-07-15 05:58:22 -05:00
parent 883cac8f47
commit 34ec6e60f8

View File

@@ -16,6 +16,7 @@ let playerResourceReady = new Array(server.maxClients).fill(false);
let playerResourceStarted = new Array(server.maxClients).fill(false); let playerResourceStarted = new Array(server.maxClients).fill(false);
let playerInitialized = new Array(server.maxClients).fill(false); let playerInitialized = new Array(server.maxClients).fill(false);
let playerGUI = new Array(server.maxClients).fill(false); let playerGUI = new Array(server.maxClients).fill(false);
let defaultNoAccountId = 479;
// =========================================================================== // ===========================================================================
@@ -29,13 +30,14 @@ let playerGUI = new Array(server.maxClients).fill(false);
* @property {Array.<ItemData>} items * @property {Array.<ItemData>} items
* @property {Array.<ItemTypeData>} itemTypes * @property {Array.<ItemTypeData>} itemTypes
* @property {Array.<ClanData>} clans * @property {Array.<ClanData>} clans
* @property {Array} localeStrings
* @property {Array.<TriggerData>} triggers * @property {Array.<TriggerData>} triggers
* @property {Array.<NPCData>} npcs * @property {Array.<NPCData>} npcs
* @property {Array.<RaceData>} races * @property {Array.<RaceData>} races
* @property {Array.<JobData>} jobs * @property {Array.<JobData>} jobs
* @property {Array.<GateData>} gates * @property {Array.<GateData>} gates
* @property {Array.<RadioStationData>} radioStations * @property {Array.<RadioStationData>} radioStations
* @property {Array} locales
* @property {Array} localeStrings
* @property {Array} groundItemCache * @property {Array} groundItemCache
* @property {Array} groundPlantCache * @property {Array} groundPlantCache
* @property {Array} purchasingVehicleCache * @property {Array} purchasingVehicleCache
@@ -51,7 +53,6 @@ let serverData = {
items: [], items: [],
itemTypes: [], itemTypes: [],
clans: [], clans: [],
localeStrings: {},
cachedTranslations: [], cachedTranslations: [],
cachedTranslationFrom: [], cachedTranslationFrom: [],
triggers: [], triggers: [],
@@ -60,6 +61,7 @@ let serverData = {
jobs: [], jobs: [],
gates: [], gates: [],
radioStations: [], radioStations: [],
localeStrings: {},
groundItemCache: [], groundItemCache: [],
groundPlantCache: [], groundPlantCache: [],
purchasingVehicleCache: [], purchasingVehicleCache: [],
@@ -70,9 +72,7 @@ let serverData = {
// =========================================================================== // ===========================================================================
/** /**
* * @return {ServerData} serverData
* @return {ServerData}
*
*/ */
function getServerData() { function getServerData() {
return serverData; return serverData;