Use double quotes in strings [skip ci]

This commit is contained in:
Akkadius 2020-04-04 02:56:14 -05:00
parent 376c123fa1
commit 0552582274
42 changed files with 80 additions and 79 deletions

View File

@ -131,7 +131,7 @@ public:
entry.sharedplat = 0; entry.sharedplat = 0;
entry.password = ""; entry.password = "";
entry.status = 0; entry.status = 0;
entry.ls_id = 'eqemu'; entry.ls_id = "eqemu";
entry.lsaccount_id = 0; entry.lsaccount_id = 0;
entry.gmspeed = 0; entry.gmspeed = 0;
entry.revoked = 0; entry.revoked = 0;
@ -139,11 +139,11 @@ public:
entry.minilogin_ip = ""; entry.minilogin_ip = "";
entry.hideme = 0; entry.hideme = 0;
entry.rulesflag = 0; entry.rulesflag = 0;
entry.suspendeduntil = '0000-00-00 00:00:00'; entry.suspendeduntil = "0000-00-00 00:00:00";
entry.time_creation = 0; entry.time_creation = 0;
entry.expansion = 0; entry.expansion = 0;
entry.ban_reason = 0; entry.ban_reason = "";
entry.suspend_reason = 0; entry.suspend_reason = "";
return entry; return entry;
} }

View File

@ -167,7 +167,7 @@ public:
entry.assa_y = 0; entry.assa_y = 0;
entry.assa_z = 0; entry.assa_z = 0;
entry.assa_h = 0; entry.assa_h = 0;
entry.text = 0; entry.text = "";
entry.duration = 7200; entry.duration = 7200;
entry.zone_in_time = 1800; entry.zone_in_time = 1800;
entry.win_points = 0; entry.win_points = 0;

View File

@ -92,7 +92,7 @@ public:
BannedIps entry{}; BannedIps entry{};
entry.ip_address = ""; entry.ip_address = "";
entry.notes = 0; entry.notes = "";
return entry; return entry;
} }

View File

@ -152,24 +152,24 @@ public:
BugReports entry{}; BugReports entry{};
entry.id = 0; entry.id = 0;
entry.zone = 'Unknown'; entry.zone = "Unknown";
entry.client_version_id = 0; entry.client_version_id = 0;
entry.client_version_name = 'Unknown'; entry.client_version_name = "Unknown";
entry.account_id = 0; entry.account_id = 0;
entry.character_id = 0; entry.character_id = 0;
entry.character_name = 'Unknown'; entry.character_name = "Unknown";
entry.reporter_spoof = 1; entry.reporter_spoof = 1;
entry.category_id = 0; entry.category_id = 0;
entry.category_name = 'Other'; entry.category_name = "Other";
entry.reporter_name = 'Unknown'; entry.reporter_name = "Unknown";
entry.ui_path = 'Unknown'; entry.ui_path = "Unknown";
entry.pos_x = 0; entry.pos_x = 0;
entry.pos_y = 0; entry.pos_y = 0;
entry.pos_z = 0; entry.pos_z = 0;
entry.heading = 0; entry.heading = 0;
entry.time_played = 0; entry.time_played = 0;
entry.target_id = 0; entry.target_id = 0;
entry.target_name = 'Unknown'; entry.target_name = "Unknown";
entry.optional_info_mask = 0; entry.optional_info_mask = 0;
entry._can_duplicate = 0; entry._can_duplicate = 0;
entry._crash_bug = 0; entry._crash_bug = 0;
@ -181,7 +181,7 @@ public:
entry.report_datetime = current_timestamp(); entry.report_datetime = current_timestamp();
entry.bug_status = 0; entry.bug_status = 0;
entry.last_review = current_timestamp(); entry.last_review = current_timestamp();
entry.last_reviewer = 'None'; entry.last_reviewer = "None";
entry.reviewer_notes = ""; entry.reviewer_notes = "";
return entry; return entry;

View File

@ -122,7 +122,7 @@ public:
entry.z = 0; entry.z = 0;
entry.type = ""; entry.type = "";
entry.flag = 0; entry.flag = 0;
entry.target = 0; entry.target = "";
entry.bug = ""; entry.bug = "";
entry.date = 0; entry.date = 0;
entry.status = 0; entry.status = 0;

View File

@ -104,7 +104,7 @@ public:
entry.bandolier_slot = 0; entry.bandolier_slot = 0;
entry.item_id = 0; entry.item_id = 0;
entry.icon = 0; entry.icon = 0;
entry.bandolier_name = '0'; entry.bandolier_name = "0";
return entry; return entry;
} }

View File

@ -190,7 +190,7 @@ public:
entry.y = 0; entry.y = 0;
entry.z = 0; entry.z = 0;
entry.heading = 0; entry.heading = 0;
entry.time_of_death = '0000-00-00 00:00:00'; entry.time_of_death = "0000-00-00 00:00:00";
entry.guild_consent_id = 0; entry.guild_consent_id = 0;
entry.is_rezzed = 0; entry.is_rezzed = 0;
entry.is_buried = 0; entry.is_buried = 0;

View File

@ -96,8 +96,8 @@ public:
DataBuckets entry{}; DataBuckets entry{};
entry.id = 0; entry.id = 0;
entry.key = 0; entry.key = "";
entry.value = 0; entry.value = "";
entry.expires = 0; entry.expires = 0;
return entry; return entry;

View File

@ -151,7 +151,7 @@ public:
entry.id = 0; entry.id = 0;
entry.doorid = 0; entry.doorid = 0;
entry.zone = 0; entry.zone = "";
entry.version = 0; entry.version = 0;
entry.name = ""; entry.name = "";
entry.pos_y = 0; entry.pos_y = 0;
@ -168,7 +168,7 @@ public:
entry.disable_timer = 0; entry.disable_timer = 0;
entry.doorisopen = 0; entry.doorisopen = 0;
entry.door_param = 0; entry.door_param = 0;
entry.dest_zone = 'NONE'; entry.dest_zone = "NONE";
entry.dest_instance = 0; entry.dest_instance = 0;
entry.dest_x = 0; entry.dest_x = 0;
entry.dest_y = 0; entry.dest_y = 0;

View File

@ -112,7 +112,7 @@ public:
entry.accountid = 0; entry.accountid = 0;
entry.status = 0; entry.status = 0;
entry.charname = ""; entry.charname = "";
entry.target = 'None'; entry.target = "None";
entry.time = current_timestamp(); entry.time = current_timestamp();
entry.descriptiontype = ""; entry.descriptiontype = "";
entry.description = ""; entry.description = "";

View File

@ -114,17 +114,17 @@ public:
GlobalLoot entry{}; GlobalLoot entry{};
entry.id = 0; entry.id = 0;
entry.description = 0; entry.description = "";
entry.loottable_id = 0; entry.loottable_id = 0;
entry.enabled = 1; entry.enabled = 1;
entry.min_level = 0; entry.min_level = 0;
entry.max_level = 0; entry.max_level = 0;
entry.rare = 0; entry.rare = 0;
entry.raid = 0; entry.raid = 0;
entry.race = 0; entry.race = "";
entry.class = 0; entry.class = "";
entry.bodytype = 0; entry.bodytype = "";
entry.zone = 0; entry.zone = "";
entry.hot_zone = 0; entry.hot_zone = 0;
return entry; return entry;

View File

@ -103,7 +103,7 @@ public:
entry.account = ""; entry.account = "";
entry.name = ""; entry.name = "";
entry.hacked = ""; entry.hacked = "";
entry.zone = 0; entry.zone = "";
entry.date = current_timestamp(); entry.date = current_timestamp();
return entry; return entry;

View File

@ -104,7 +104,7 @@ public:
entry.gender = 0; entry.gender = 0;
entry.texture = 0; entry.texture = 0;
entry.mountspeed = 0.75; entry.mountspeed = 0.75;
entry.notes = 'Notes'; entry.notes = "Notes";
return entry; return entry;
} }

View File

@ -131,7 +131,7 @@ public:
entry.augslot5 = 0; entry.augslot5 = 0;
entry.augslot6 = 0; entry.augslot6 = 0;
entry.instnodrop = 0; entry.instnodrop = 0;
entry.custom_data = 0; entry.custom_data = "";
entry.ornamenticon = 0; entry.ornamenticon = 0;
entry.ornamentidfile = 0; entry.ornamentidfile = 0;
entry.ornament_hero_model = 0; entry.ornament_hero_model = 0;

View File

@ -134,7 +134,7 @@ public:
entry.augslot5 = 0; entry.augslot5 = 0;
entry.augslot6 = 0; entry.augslot6 = 0;
entry.instnodrop = 0; entry.instnodrop = 0;
entry.custom_data = 0; entry.custom_data = "";
entry.ornamenticon = 0; entry.ornamenticon = 0;
entry.ornamentidfile = 0; entry.ornamentidfile = 0;
entry.ornament_hero_model = 0; entry.ornament_hero_model = 0;

View File

@ -94,7 +94,7 @@ public:
IpExemptions entry{}; IpExemptions entry{};
entry.exemption_id = 0; entry.exemption_id = 0;
entry.exemption_ip = 0; entry.exemption_ip = "";
entry.exemption_amount = 0; entry.exemption_amount = 0;
return entry; return entry;

View File

@ -791,7 +791,7 @@ public:
entry.UNK124 = 0; entry.UNK124 = 0;
entry.attuneable = 0; entry.attuneable = 0;
entry.nopet = 0; entry.nopet = 0;
entry.updated = '0000-00-00 00:00:00'; entry.updated = "0000-00-00 00:00:00";
entry.comment = ""; entry.comment = "";
entry.UNK127 = 0; entry.UNK127 = 0;
entry.pointtype = 0; entry.pointtype = 0;
@ -823,7 +823,7 @@ public:
entry.UNK157 = 0; entry.UNK157 = 0;
entry.serialized = 0; entry.serialized = 0;
entry.verified = 0; entry.verified = 0;
entry.serialization = 0; entry.serialization = "";
entry.source = ""; entry.source = "";
entry.UNK033 = 0; entry.UNK033 = 0;
entry.lorefile = ""; entry.lorefile = "";
@ -840,7 +840,7 @@ public:
entry.UNK120 = 0; entry.UNK120 = 0;
entry.UNK121 = 0; entry.UNK121 = 0;
entry.questitemflag = 0; entry.questitemflag = 0;
entry.UNK132 = 0; entry.UNK132 = "";
entry.clickunk5 = 0; entry.clickunk5 = 0;
entry.clickunk6 = ""; entry.clickunk6 = "";
entry.clickunk7 = 0; entry.clickunk7 = 0;

View File

@ -109,7 +109,7 @@ public:
entry.account_name = ""; entry.account_name = "";
entry.account_password = ""; entry.account_password = "";
entry.account_email = ""; entry.account_email = "";
entry.source_loginserver = 0; entry.source_loginserver = "";
entry.last_ip_address = ""; entry.last_ip_address = "";
entry.last_login_date = 0; entry.last_login_date = 0;
entry.created_at = 0; entry.created_at = 0;

View File

@ -100,7 +100,7 @@ public:
LoginApiTokens entry{}; LoginApiTokens entry{};
entry.id = 0; entry.id = 0;
entry.token = 0; entry.token = "";
entry.can_write = 0; entry.can_write = 0;
entry.can_read = 0; entry.can_read = 0;
entry.created_at = 0; entry.created_at = 0;

View File

@ -113,10 +113,10 @@ public:
entry.tag_description = ""; entry.tag_description = "";
entry.login_server_list_type_id = 0; entry.login_server_list_type_id = 0;
entry.last_login_date = 0; entry.last_login_date = 0;
entry.last_ip_address = 0; entry.last_ip_address = "";
entry.login_server_admin_id = 0; entry.login_server_admin_id = 0;
entry.is_server_trusted = 0; entry.is_server_trusted = 0;
entry.note = 0; entry.note = "";
return entry; return entry;
} }

View File

@ -98,7 +98,7 @@ public:
LogsysCategories entry{}; LogsysCategories entry{};
entry.log_category_id = 0; entry.log_category_id = 0;
entry.log_category_description = 0; entry.log_category_description = "";
entry.log_to_console = 0; entry.log_to_console = 0;
entry.log_to_file = 0; entry.log_to_file = 0;
entry.log_to_gmsay = 0; entry.log_to_gmsay = 0;

View File

@ -96,7 +96,7 @@ public:
NpcFaction entry{}; NpcFaction entry{};
entry.id = 0; entry.id = 0;
entry.name = 0; entry.name = "";
entry.primaryfaction = 0; entry.primaryfaction = 0;
entry.ignore_primary_assist = 0; entry.ignore_primary_assist = 0;

View File

@ -170,7 +170,7 @@ public:
entry.attack_delay = 0; entry.attack_delay = 0;
entry.spell_scale = 100; entry.spell_scale = 100;
entry.heal_scale = 100; entry.heal_scale = 100;
entry.special_abilities = 0; entry.special_abilities = "";
return entry; return entry;
} }

View File

@ -94,7 +94,7 @@ public:
NpcSpellsEffects entry{}; NpcSpellsEffects entry{};
entry.id = 0; entry.id = 0;
entry.name = 0; entry.name = "";
entry.parent_list = 0; entry.parent_list = 0;
return entry; return entry;

View File

@ -130,7 +130,7 @@ public:
NpcSpells entry{}; NpcSpells entry{};
entry.id = 0; entry.id = 0;
entry.name = 0; entry.name = "";
entry.parent_list = 0; entry.parent_list = 0;
entry.attack_proc = -1; entry.attack_proc = -1;
entry.proc_chance = 3; entry.proc_chance = 3;

View File

@ -333,7 +333,7 @@ public:
entry.id = 0; entry.id = 0;
entry.name = ""; entry.name = "";
entry.lastname = 0; entry.lastname = "";
entry.level = 0; entry.level = 0;
entry.race = 0; entry.race = 0;
entry.class = 0; entry.class = 0;
@ -359,7 +359,7 @@ public:
entry.maxdmg = 0; entry.maxdmg = 0;
entry.attack_count = -1; entry.attack_count = -1;
entry.npcspecialattks = ""; entry.npcspecialattks = "";
entry.special_abilities = 0; entry.special_abilities = "";
entry.aggroradius = 0; entry.aggroradius = 0;
entry.assistradius = 0; entry.assistradius = 0;
entry.face = 1; entry.face = 1;
@ -378,7 +378,7 @@ public:
entry.armortint_blue = 0; entry.armortint_blue = 0;
entry.d_melee_texture1 = 0; entry.d_melee_texture1 = 0;
entry.d_melee_texture2 = 0; entry.d_melee_texture2 = 0;
entry.ammo_idfile = 'IT10'; entry.ammo_idfile = "IT10";
entry.prim_melee_type = 28; entry.prim_melee_type = 28;
entry.sec_melee_type = 28; entry.sec_melee_type = 28;
entry.ranged_type = 7; entry.ranged_type = 7;

View File

@ -116,7 +116,7 @@ public:
entry.bagidx = 0; entry.bagidx = 0;
entry.itemid = 0; entry.itemid = 0;
entry.charges = 0; entry.charges = 0;
entry.droptime = '0000-00-00 00:00:00'; entry.droptime = "0000-00-00 00:00:00";
entry.augslot1 = 0; entry.augslot1 = 0;
entry.augslot2 = 0; entry.augslot2 = 0;
entry.augslot3 = 0; entry.augslot3 = 0;

View File

@ -148,7 +148,7 @@ public:
entry.heading = 0; entry.heading = 0;
entry.itemid = 0; entry.itemid = 0;
entry.charges = 0; entry.charges = 0;
entry.objectname = 0; entry.objectname = "";
entry.type = 0; entry.type = 0;
entry.icon = 0; entry.icon = 0;
entry.unknown08 = 0; entry.unknown08 = 0;
@ -164,7 +164,7 @@ public:
entry.size = 100; entry.size = 100;
entry.tilt_x = 0; entry.tilt_x = 0;
entry.tilt_y = 0; entry.tilt_y = 0;
entry.display_name = 0; entry.display_name = "";
return entry; return entry;
} }

View File

@ -102,7 +102,7 @@ public:
PerlEventExportSettings entry{}; PerlEventExportSettings entry{};
entry.event_id = 0; entry.event_id = 0;
entry.event_description = 0; entry.event_description = "";
entry.export_qglobals = 0; entry.export_qglobals = 0;
entry.export_mob = 0; entry.export_mob = 0;
entry.export_zone = 0; entry.export_zone = 0;

View File

@ -125,7 +125,7 @@ public:
entry.accountname = ""; entry.accountname = "";
entry.lastgm = ""; entry.lastgm = "";
entry.petitiontext = ""; entry.petitiontext = "";
entry.gmtext = 0; entry.gmtext = "";
entry.zone = ""; entry.zone = "";
entry.urgency = 0; entry.urgency = 0;
entry.charclass = 0; entry.charclass = 0;

View File

@ -103,7 +103,7 @@ public:
entry.npcid = 0; entry.npcid = 0;
entry.zoneid = 0; entry.zoneid = 0;
entry.name = ""; entry.name = "";
entry.value = '?'; entry.value = "?";
entry.expdate = 0; entry.expdate = 0;
return entry; return entry;

View File

@ -98,7 +98,7 @@ public:
entry.raidid = 0; entry.raidid = 0;
entry.loottype = 0; entry.loottype = 0;
entry.locked = 0; entry.locked = 0;
entry.motd = 0; entry.motd = "";
return entry; return entry;
} }

View File

@ -96,9 +96,9 @@ public:
Reports entry{}; Reports entry{};
entry.id = 0; entry.id = 0;
entry.name = 0; entry.name = "";
entry.reported = 0; entry.reported = "";
entry.reported_text = 0; entry.reported_text = "";
return entry; return entry;
} }

View File

@ -98,7 +98,7 @@ public:
entry.ruleset_id = 0; entry.ruleset_id = 0;
entry.rule_name = ""; entry.rule_name = "";
entry.rule_value = ""; entry.rule_value = "";
entry.notes = 0; entry.notes = "";
return entry; return entry;
} }

View File

@ -119,7 +119,7 @@ public:
entry.id = 0; entry.id = 0;
entry.spawngroupID = 0; entry.spawngroupID = 0;
entry.zone = 0; entry.zone = "";
entry.version = 0; entry.version = 0;
entry.x = 0.000000; entry.x = 0.000000;
entry.y = 0.000000; entry.y = 0.000000;

View File

@ -116,7 +116,7 @@ public:
SpawnEvents entry{}; SpawnEvents entry{};
entry.id = 0; entry.id = 0;
entry.zone = 0; entry.zone = "";
entry.cond_id = 0; entry.cond_id = 0;
entry.name = ""; entry.name = "";
entry.period = 0; entry.period = 0;

View File

@ -94,8 +94,8 @@ public:
SpellBuckets entry{}; SpellBuckets entry{};
entry.spellid = 0; entry.spellid = 0;
entry.key = 0; entry.key = "";
entry.value = 0; entry.value = "";
return entry; return entry;
} }

View File

@ -562,14 +562,14 @@ public:
SpellsNew entry{}; SpellsNew entry{};
entry.id = 0; entry.id = 0;
entry.name = 0; entry.name = "";
entry.player_1 = 'BLUE_TRAIL'; entry.player_1 = "BLUE_TRAIL";
entry.teleport_zone = 0; entry.teleport_zone = "";
entry.you_cast = 0; entry.you_cast = "";
entry.other_casts = 0; entry.other_casts = "";
entry.cast_on_you = 0; entry.cast_on_you = "";
entry.cast_on_other = 0; entry.cast_on_other = "";
entry.spell_fades = 0; entry.spell_fades = "";
entry.range = 100; entry.range = 100;
entry.aoerange = 0; entry.aoerange = 0;
entry.pushback = 0; entry.pushback = 0;

View File

@ -123,8 +123,8 @@ public:
entry.activitytype = 0; entry.activitytype = 0;
entry.target_name = ""; entry.target_name = "";
entry.item_list = ""; entry.item_list = "";
entry.skill_list = '-1'; entry.skill_list = "-1";
entry.spell_list = '0'; entry.spell_list = "0";
entry.description_override = ""; entry.description_override = "";
entry.goalid = 0; entry.goalid = 0;
entry.goalmethod = 0; entry.goalmethod = 0;

View File

@ -122,7 +122,7 @@ public:
ZonePoints entry{}; ZonePoints entry{};
entry.id = 0; entry.id = 0;
entry.zone = 0; entry.zone = "";
entry.version = 0; entry.version = 0;
entry.number = 1; entry.number = 1;
entry.y = 0; entry.y = 0;

View File

@ -259,11 +259,11 @@ public:
{ {
Zone entry{}; Zone entry{};
entry.short_name = 0; entry.short_name = "";
entry.id = 0; entry.id = 0;
entry.file_name = 0; entry.file_name = "";
entry.long_name = ""; entry.long_name = "";
entry.map_file_name = 0; entry.map_file_name = "";
entry.safe_x = 0; entry.safe_x = 0;
entry.safe_y = 0; entry.safe_y = 0;
entry.safe_z = 0; entry.safe_z = 0;
@ -275,7 +275,7 @@ public:
entry.timezone = 0; entry.timezone = 0;
entry.maxclients = 0; entry.maxclients = 0;
entry.ruleset = 0; entry.ruleset = 0;
entry.note = 0; entry.note = "";
entry.underworld = 0; entry.underworld = 0;
entry.minclip = 450; entry.minclip = 450;
entry.maxclip = 450; entry.maxclip = 450;

View File

@ -218,12 +218,13 @@ foreach my $table_to_generate (@tables) {
my $default_value = 0; my $default_value = 0;
if ($column_default ne "NULL" && $column_default ne "") { if ($column_default ne "NULL" && $column_default ne "") {
$column_default=~s/'/"/g;
$default_value = $column_default; $default_value = $column_default;
} }
if ($column_default eq "''") { elsif ($column_default eq "''") {
$default_value = '""'; $default_value = '""';
} }
if (trim($column_default) eq "" && $column_type =~ /text|varchar/i) { elsif ((trim($column_default) eq "" || $column_default eq "NULL") && $column_type =~ /text|varchar/i) {
$default_value = '""'; $default_value = '""';
} }