[Zone] Deprecate Zone expansion Field (#2297)

This commit is contained in:
Chris Miles
2022-07-14 02:49:35 -05:00
committed by GitHub
parent c8b3ca53fe
commit ddb5794462
5 changed files with 134 additions and 141 deletions
+1
View File
@@ -439,6 +439,7 @@
9183|2022_05_07_merchant_data_buckets.sql|SHOW COLUMNS FROM `merchantlist` LIKE 'bucket_comparison'|empty
9184|2022_05_21_schema_consistency.sql|SELECT * FROM db_version WHERE version >= 9184|empty|
9185|2022_05_07_discord_webhooks.sql|SHOW TABLES LIKE 'discord_webhooks'|empty|
9186|2022_07_09_zone_expansion_deprecate.sql|SHOW COLUMNS FROM 'zone' LIKE 'expansion'|notempty|
# Upgrade conditions:
# This won't be needed after this system is implemented, but it is used database that are not
@@ -0,0 +1,2 @@
UPDATE `zone` set min_expansion = expansion;
ALTER TABLE `zone` DROP `expansion`;