You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
3.5 KiB
Java

--
alter table ea_electronic_contracts alter column borrow_status set default 2;
alter table ea_electronic_contracts alter column file_status set default 0;
--
alter table ea_electronic_employee alter column borrow_status set default 2;
alter table ea_electronic_employee alter column file_status set default 0;
--
alter table ea_electronic_assets alter column borrow_status set default 2;
alter table ea_electronic_assets alter column file_status set default 0;
--
alter table electronic_consultation alter column borrow_status set default 2;
alter table electronic_consultation alter column file_status set default 0;
--
alter table electronic_customer_complaint alter column borrow_status set default 2;
alter table electronic_customer_complaint alter column file_status set default 0;
-- file_type
ALTER TABLE archives_record MODIFY COLUMN file_type VARCHAR(64) COMMENT '';
-- ID ID ID
ALTER TABLE ea_electronic_assets ADD COLUMN `organization_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
ALTER TABLE ea_electronic_assets ADD COLUMN `depot_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
ALTER TABLE ea_electronic_assets ADD COLUMN `cabinet_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
-- ID ID ID
ALTER TABLE ea_electronic_contracts ADD COLUMN `organization_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
ALTER TABLE ea_electronic_contracts ADD COLUMN `depot_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
ALTER TABLE ea_electronic_contracts ADD COLUMN `cabinet_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
-- ID ID ID
ALTER TABLE ea_electronic_employee ADD COLUMN `organization_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
ALTER TABLE ea_electronic_employee ADD COLUMN `depot_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
ALTER TABLE ea_electronic_employee ADD COLUMN `cabinet_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
-- ID ID ID
ALTER TABLE electronic_consultation ADD COLUMN `organization_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
ALTER TABLE electronic_consultation ADD COLUMN `depot_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
ALTER TABLE electronic_consultation ADD COLUMN `cabinet_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
-- ID ID ID
ALTER TABLE electronic_customer_complaint ADD COLUMN `organization_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
ALTER TABLE electronic_customer_complaint ADD COLUMN `depot_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
ALTER TABLE electronic_customer_complaint ADD COLUMN `cabinet_id` bigint(20) NULL DEFAULT NULL COMMENT 'ID';
--
ALTER TABLE archives_borrow_apply ADD COLUMN `file_type` varchar(64) NULL DEFAULT NULL COMMENT '';
ALTER TABLE archives_borrow_apply ADD COLUMN `site` varchar(64) NULL DEFAULT NULL COMMENT '';
ALTER TABLE archives_borrow_apply ADD COLUMN `files_num` varchar(64) NULL DEFAULT NULL COMMENT '';