Files
ccdi/sql/ccdi_bank_statement_add_project_id.sql

15 lines
470 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 为 ccdi_bank_statement 表添加 project_id 字段
-- 用途关联项目ID实现流水数据与项目的业务关联
-- 作者:系统自动生成
-- 日期2026-03-04
USE ccdi;
-- 添加 project_id 字段
ALTER TABLE `ccdi_bank_statement`
ADD COLUMN `project_id` bigint(20) DEFAULT NULL COMMENT '关联项目ID' AFTER `bank_statement_id`;
-- 添加索引以提升查询性能
ALTER TABLE `ccdi_bank_statement`
ADD INDEX `idx_project_id` (`project_id`);