From 03367f7d9d992bd1a419e29899ceeea8ddb2b403 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Sat, 4 Oct 2025 11:26:35 -0700 Subject: [PATCH] fix: ignore foreign key checks more fixes an issue if you delete users in an earlier build of dlu. --- migrations/dlu/mysql/24_remove_persistent_bit.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migrations/dlu/mysql/24_remove_persistent_bit.sql b/migrations/dlu/mysql/24_remove_persistent_bit.sql index 2ed84947..5d565a58 100644 --- a/migrations/dlu/mysql/24_remove_persistent_bit.sql +++ b/migrations/dlu/mysql/24_remove_persistent_bit.sql @@ -28,10 +28,12 @@ CREATE TABLE `properties_contents_2` ( `behavior_4` BIGINT DEFAULT 0, `behavior_5` BIGINT DEFAULT 0 ); +SET foreign_key_checks = 0; INSERT INTO `ugc_2` SELECT `id`|0x1000000000000000,`account_id`,`character_id`,`is_optimized`,`lxfml`,`bake_ao`,`filename` FROM `ugc`; INSERT INTO `properties_contents_2` SELECT `id`,`property_id`,`ugc_id`|0x1000000000000000,`lot`,`x`,`y`,`z`,`rx`,`ry`,`rz`,`rw`,`model_name`,`model_description`,`behavior_1`,`behavior_2`,`behavior_3`,`behavior_4`,`behavior_5` FROM `properties_contents`; DROP TABLE `properties_contents`; DROP TABLE `ugc`; RENAME TABLE `properties_contents_2` TO `properties_contents`; RENAME TABLE `ugc_2` TO `ugc`; +SET foreign_key_checks = 1; COMMIT;