修改问题

这个提交包含在:
apple
2026-12-01 15:34:17 +08:00
父节点 4d8c05e765
当前提交 32a3242a46
共修改 38 个文件,包含 892 行新增和 94 行删除
@@ -0,0 +1,14 @@
-- 达梦现有DataGov专属schema增量282;需已完成279、280、281。
-- 客户端设置遇错停止。已存在或部分执行时先核对表和安装记录,不可盲目重跑。
CREATE TABLE dg_reporting_plan_source (
organization_id BIGINT NOT NULL,
plan_id VARCHAR(36 CHAR) NOT NULL,
resource_code VARCHAR(128 CHAR) NOT NULL,
binding_json CLOB NOT NULL,
PRIMARY KEY (organization_id,plan_id,resource_code),
CONSTRAINT fk_reporting_plan_source FOREIGN KEY (organization_id,plan_id) REFERENCES dg_reporting_plan(organization_id,plan_id)
);
INSERT INTO dg_dm_install_step(step_key,sha256,state,error_code) VALUES('dg_reporting_plan_source:dg_reporting_plan_source','a167a7da76d97e62de603a7aafa7d669e2acf00114b4b48084043092436aa22c','SUCCESS',NULL);
COMMIT;
SELECT step_key,state FROM dg_dm_install_step WHERE step_key='dg_reporting_plan_source:dg_reporting_plan_source';
SELECT COUNT(*) AS direct_binding_rows FROM dg_reporting_plan_source;
+11 -1
查看文件
@@ -1,5 +1,5 @@
-- Fresh-install DM schema; target 8.4.4.80 Pack89.
-- Source fingerprint: 3db4b6f515d7e8c9a42ce80ca635be6417aa9b26bdf7e64897063b9068be9dab
-- Source fingerprint: fe478bb2dc0d7a7f1d9acb605b241d36af7d34892de751f14b96d5c7a8759dc7
-- @statement sys_social
CREATE TABLE sys_social (
id bigint not null comment '主键',
@@ -20848,3 +20848,13 @@ CREATE TABLE dg_reporting_artifact (
-- @statement dg_reporting_artifact
CREATE UNIQUE INDEX uk_reporting_artifact_operation ON dg_reporting_artifact(operation_key);
-- @statement dg_reporting_plan_source
CREATE TABLE dg_reporting_plan_source (
organization_id BIGINT NOT NULL,
plan_id VARCHAR(36 CHAR) NOT NULL,
resource_code VARCHAR(128 CHAR) NOT NULL,
binding_json CLOB NOT NULL,
PRIMARY KEY (organization_id,plan_id,resource_code),
CONSTRAINT fk_reporting_plan_source FOREIGN KEY (organization_id,plan_id) REFERENCES dg_reporting_plan(organization_id,plan_id)
);
+4
查看文件
@@ -1102,3 +1102,7 @@ migrations:
ownerUnit: integration
path: db/migration/integration/V20261130.281__create_reporting_execution.sql
sha256: 0f4552ba031b2696c13627f37aef5857ff4d92711fcf0eb4e3f8c77e32080720
- version: '20261201.282'
ownerUnit: integration
path: db/migration/integration/V20261201.282__create_reporting_direct_source.sql
sha256: 61e51dbda60bf28e726b89253d55030a5d73652a6f9e33483254498eff3b752a
@@ -0,0 +1,9 @@
-- Direct reporting bindings are separate from published dataset references.
CREATE TABLE dg_reporting_plan_source (
organization_id BIGINT NOT NULL,
plan_id VARCHAR(36) NOT NULL,
resource_code VARCHAR(128) NOT NULL,
binding_json LONGTEXT NOT NULL,
PRIMARY KEY (organization_id,plan_id,resource_code),
CONSTRAINT fk_reporting_plan_source FOREIGN KEY (organization_id,plan_id) REFERENCES dg_reporting_plan(organization_id,plan_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;