|
@@ -124,3 +124,67 @@ ALTER TABLE qw_external_contact
|
|
|
ALTER TABLE qw_external_contact
|
|
ALTER TABLE qw_external_contact
|
|
|
ADD COLUMN contact_mobiles VARCHAR(500) NULL DEFAULT NULL COMMENT '联系手机号码,多个英文逗号分隔';
|
|
ADD COLUMN contact_mobiles VARCHAR(500) NULL DEFAULT NULL COMMENT '联系手机号码,多个英文逗号分隔';
|
|
|
--rollback ALTER TABLE qw_external_contact DROP COLUMN contact_mobiles;
|
|
--rollback ALTER TABLE qw_external_contact DROP COLUMN contact_mobiles;
|
|
|
|
|
+
|
|
|
|
|
+--changeset wjj:20260703-fs-store-payment-share-date
|
|
|
|
|
+--preconditions onFail:MARK_RAN
|
|
|
|
|
+--precondition-sql-check expectedResult:1 SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment'
|
|
|
|
|
+--precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.columns WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment' AND column_name = 'share_date'
|
|
|
|
|
+ALTER TABLE fs_store_payment
|
|
|
|
|
+ ADD COLUMN share_date VARCHAR(255) NULL DEFAULT NULL COMMENT '分账日期';
|
|
|
|
|
+--rollback ALTER TABLE fs_store_payment DROP COLUMN share_date;
|
|
|
|
|
+
|
|
|
|
|
+--changeset wjj:20260703-fs-store-payment-share-time
|
|
|
|
|
+--preconditions onFail:MARK_RAN
|
|
|
|
|
+--precondition-sql-check expectedResult:1 SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment'
|
|
|
|
|
+--precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.columns WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment' AND column_name = 'share_time'
|
|
|
|
|
+ALTER TABLE fs_store_payment
|
|
|
|
|
+ ADD COLUMN share_time datetime NULL DEFAULT NULL COMMENT '分账时间';
|
|
|
|
|
+--rollback ALTER TABLE fs_store_payment DROP COLUMN share_time;
|
|
|
|
|
+
|
|
|
|
|
+--changeset wjj:20260703-fs-store-payment-scrm-share-date
|
|
|
|
|
+--preconditions onFail:MARK_RAN
|
|
|
|
|
+--precondition-sql-check expectedResult:1 SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment_scrm'
|
|
|
|
|
+--precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.columns WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment_scrm' AND column_name = 'share_date'
|
|
|
|
|
+ALTER TABLE fs_store_payment_scrm
|
|
|
|
|
+ ADD COLUMN share_date VARCHAR(255) NULL DEFAULT NULL COMMENT '分账日期';
|
|
|
|
|
+--rollback ALTER TABLE fs_store_payment_scrm DROP COLUMN share_date;
|
|
|
|
|
+
|
|
|
|
|
+--changeset wjj:20260703-fs-store-payment-scrm-share-time
|
|
|
|
|
+--preconditions onFail:MARK_RAN
|
|
|
|
|
+--precondition-sql-check expectedResult:1 SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment_scrm'
|
|
|
|
|
+--precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.columns WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment_scrm' AND column_name = 'share_time'
|
|
|
|
|
+ALTER TABLE fs_store_payment_scrm
|
|
|
|
|
+ ADD COLUMN share_time datetime NULL DEFAULT NULL COMMENT '分账时间';
|
|
|
|
|
+--rollback ALTER TABLE fs_store_payment_scrm DROP COLUMN share_time;
|
|
|
|
|
+
|
|
|
|
|
+--changeset wjj:20260703-fs-store-payment-scrm-share-status
|
|
|
|
|
+--preconditions onFail:MARK_RAN
|
|
|
|
|
+--precondition-sql-check expectedResult:1 SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment_scrm'
|
|
|
|
|
+--precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.columns WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment_scrm' AND column_name = 'share_status'
|
|
|
|
|
+ALTER TABLE fs_store_payment_scrm
|
|
|
|
|
+ ADD COLUMN share_status tinyint(1) NULL DEFAULT 0 COMMENT '分账状态 0未分账 1已分账';
|
|
|
|
|
+--rollback ALTER TABLE fs_store_payment_scrm DROP COLUMN share_status;
|
|
|
|
|
+
|
|
|
|
|
+--changeset wjj:20260703-fs-store-payment-scrm-share-code
|
|
|
|
|
+--preconditions onFail:MARK_RAN
|
|
|
|
|
+--precondition-sql-check expectedResult:1 SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment_scrm'
|
|
|
|
|
+--precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.columns WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment_scrm' AND column_name = 'share_code'
|
|
|
|
|
+ALTER TABLE fs_store_payment_scrm
|
|
|
|
|
+ ADD COLUMN share_code VARCHAR(50) NULL DEFAULT NULL COMMENT '分账单号';
|
|
|
|
|
+--rollback ALTER TABLE fs_store_payment_scrm DROP COLUMN share_code;
|
|
|
|
|
+
|
|
|
|
|
+--changeset wjj:20260703-fs-store-payment-scrm-is-share
|
|
|
|
|
+--preconditions onFail:MARK_RAN
|
|
|
|
|
+--precondition-sql-check expectedResult:1 SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment_scrm'
|
|
|
|
|
+--precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.columns WHERE table_schema = DATABASE() AND table_name = 'fs_store_payment_scrm' AND column_name = 'is_share'
|
|
|
|
|
+ALTER TABLE fs_store_payment_scrm
|
|
|
|
|
+ ADD COLUMN is_share tinyint(1) NULL DEFAULT 0 COMMENT '是否分账';
|
|
|
|
|
+--rollback ALTER TABLE fs_store_payment_scrm DROP COLUMN is_share;
|
|
|
|
|
+
|
|
|
|
|
+--changeset wjj:20260703-fs-store-product-scrm-share-rate
|
|
|
|
|
+--preconditions onFail:MARK_RAN
|
|
|
|
|
+--precondition-sql-check expectedResult:1 SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = DATABASE() AND table_name = 'fs_store_product_scrm'
|
|
|
|
|
+--precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.columns WHERE table_schema = DATABASE() AND table_name = 'fs_store_product_scrm' AND column_name = 'share_rate'
|
|
|
|
|
+ALTER TABLE fs_store_product_scrm
|
|
|
|
|
+ ADD COLUMN share_rate int NULL DEFAULT NULL COMMENT '分账比例';
|
|
|
|
|
+--rollback ALTER TABLE fs_store_payment_scrm DROP COLUMN share_rate;
|