Pass 1 - working hash generator and saving to inventory table

This commit is contained in:
Mitch Freeman
2025-03-28 21:51:10 -03:00
parent 8175ae6187
commit c5dbd1a0c5
9 changed files with 171 additions and 53 deletions
@@ -7183,6 +7183,20 @@ ALTER TABLE `character_parcels`
ALTER TABLE `character_parcels_containers`
ADD COLUMN `evolve_amount` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `quantity`;
)",
.content_schema_update = false
},
ManifestEntry{
.version = 9329,
.description = "2025_03_27_implement_item_unique_serial_number.sql",
.check = "SHOW COLUMNS FROM `inventory` LIKE 'serial_number'",
.condition = "empty",
.match = "",
.sql = R"(
ALTER TABLE `inventory`
DROP COLUMN `guid`,
ADD COLUMN `serial_number` VARCHAR(16) NULL DEFAULT NULL AFTER `ornament_hero_model`,
ADD UNIQUE INDEX `idx_serial_number` (`serial_number`);
)",
.content_schema_update = false
},