删除productCountryId

This commit is contained in:
wuweihua
2026-10-21 11:36:25 +08:00
parent 8f1cf5c755
commit 35f1048190
6 changed files with 18 additions and 10 deletions
@@ -0,0 +1,11 @@
-- prc_order_bill: drop unused product_country_id
SET @db = DATABASE();
SET @sql = (
SELECT IF(COUNT(*) > 0,
'ALTER TABLE prc_order_bill DROP COLUMN product_country_id',
'SELECT 1')
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = @db AND TABLE_NAME = 'prc_order_bill' AND COLUMN_NAME = 'product_country_id'
);
PREPARE stmt FROM @sql; EXECUTE stmt; DEALLOCATE PREPARE stmt;