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.

61 lines
4.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 '';
--
INSERT INTO `lyr-one`.`system_dict_type` (`name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES ( '', 'asset_status', 0, NULL, '', '2023-10-30 14:06:08', '', '2023-10-30 14:06:08', b'0', '1970-01-01 00:00:00');
INSERT INTO `lyr-one`.`system_dict_data` (`sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (0, '', '0', 'asset_status', 0, 'default', '', NULL, '', '2023-10-30 14:06:28', '', '2023-10-30 14:06:28', b'0');
INSERT INTO `lyr-one`.`system_dict_data` (`sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (0, '', '1', 'asset_status', 0, 'default', '', NULL, '', '2023-10-30 14:06:34', '', '2023-10-30 14:06:34', b'0');