优化backend报销管理模块
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
-- 报销明细发票:统一使用 receipt_file_ids,移除 receipt_file_id
|
||||
-- 若已存在 receipt_file_id 列,先合并数据再删除
|
||||
|
||||
UPDATE `yz_backend_reimbursement_items`
|
||||
SET `receipt_file_ids` = CAST(`receipt_file_id` AS CHAR)
|
||||
WHERE (`receipt_file_ids` = '' OR `receipt_file_ids` IS NULL)
|
||||
AND `receipt_file_id` IS NOT NULL
|
||||
AND `receipt_file_id` > 0;
|
||||
|
||||
ALTER TABLE `yz_backend_reimbursement_items`
|
||||
DROP INDEX `idx_receipt_file_id`,
|
||||
DROP COLUMN `receipt_file_id`;
|
||||
Reference in New Issue
Block a user