From f6e6f10716f56bda7fb9b422497c5104a6dbaba9 Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Sun, 4 May 2014 01:02:04 -0400 Subject: [PATCH] Fix for npc_types table error setting SlowMitigation to null by default. If you already ran the 4-12 update you do not need to run it again, just run the new one. --- utils/sql/git/required/2014_04_12_SlowMitigation.sql | 2 +- utils/sql/git/required/2014_05_4_SlowMitigationFix.sql | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 utils/sql/git/required/2014_05_4_SlowMitigationFix.sql diff --git a/utils/sql/git/required/2014_04_12_SlowMitigation.sql b/utils/sql/git/required/2014_04_12_SlowMitigation.sql index f2ac0d68d..a497a525b 100644 --- a/utils/sql/git/required/2014_04_12_SlowMitigation.sql +++ b/utils/sql/git/required/2014_04_12_SlowMitigation.sql @@ -2,6 +2,6 @@ UPDATE npc_types SET slow_mitigation = slow_mitigation * 100; -- Change variable type from FLOAT TO INT -ALTER TABLE npc_types MODIFY slow_mitigation smallint(4); +ALTER TABLE npc_types MODIFY slow_mitigation smallint(4) NOT NULL DEFAULT '0'; diff --git a/utils/sql/git/required/2014_05_4_SlowMitigationFix.sql b/utils/sql/git/required/2014_05_4_SlowMitigationFix.sql new file mode 100644 index 000000000..bf657023c --- /dev/null +++ b/utils/sql/git/required/2014_05_4_SlowMitigationFix.sql @@ -0,0 +1,3 @@ +ALTER TABLE npc_types MODIFY slow_mitigation smallint(4) NOT NULL DEFAULT '0'; + +