Files
CKB-Interface/application/store/add_order_companyId.sql
2026-03-24 10:39:16 +08:00

11 lines
360 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.

-- 为流量套餐订单表添加公司ID字段
-- 如果字段已存在,会报错,可以忽略
ALTER TABLE `ck_flow_package_order`
ADD COLUMN `companyId` int(11) NOT NULL DEFAULT 0 COMMENT '公司ID购买用户所属公司' AFTER `userId`;
-- 添加索引
ALTER TABLE `ck_flow_package_order`
ADD INDEX `idx_companyId`(`companyId`) USING BTREE;