薪酬系统-福利档案,修改社保、公积金、其他福利表结构
This commit is contained in:
parent
9f021b6d5e
commit
6f9deed908
|
|
@ -0,0 +1,48 @@
|
|||
ALTER Table hrsa_social_archives Add employee_id2 NUMBER(38,0);
|
||||
/
|
||||
|
||||
update hrsa_social_archives a SET a.employee_id2=a.employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_social_archives drop column employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_social_archives rename column employee_id2 to employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_social_archives MODIFY (employee_id not null);
|
||||
/
|
||||
|
||||
ALTER Table hrsa_fund_archives Add employee_id2 NUMBER(38,0);
|
||||
/
|
||||
|
||||
update hrsa_fund_archives a SET a.employee_id2=a.employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_fund_archives drop column employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_fund_archives rename column employee_id2 to employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_fund_archives MODIFY (employee_id not null);
|
||||
/
|
||||
|
||||
ALTER Table hrsa_other_archives Add employee_id2 NUMBER(38,0);
|
||||
/
|
||||
|
||||
update hrsa_other_archives a SET a.employee_id2=a.employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_other_archives drop column employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_other_archives rename column employee_id2 to employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_other_archives MODIFY (employee_id not null);
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_insurance_base_info ADD employee_type number;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
ALTER Table hrsa_social_archives Add employee_id2 NUMBER(38,0);
|
||||
/
|
||||
|
||||
update hrsa_social_archives a SET a.employee_id2=a.employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_social_archives drop column employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_social_archives rename column employee_id2 to employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_social_archives MODIFY (employee_id not null);
|
||||
/
|
||||
|
||||
ALTER Table hrsa_fund_archives Add employee_id2 NUMBER(38,0);
|
||||
/
|
||||
|
||||
update hrsa_fund_archives a SET a.employee_id2=a.employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_fund_archives drop column employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_fund_archives rename column employee_id2 to employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_fund_archives MODIFY (employee_id not null);
|
||||
/
|
||||
|
||||
ALTER Table hrsa_other_archives Add employee_id2 NUMBER(38,0);
|
||||
/
|
||||
|
||||
update hrsa_other_archives a SET a.employee_id2=a.employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_other_archives drop column employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_other_archives rename column employee_id2 to employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_other_archives MODIFY (employee_id not null);
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_insurance_base_info ADD employee_type number;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
ALTER Table hrsa_social_archives Add employee_id2 NUMBER(38,0);
|
||||
/
|
||||
|
||||
update hrsa_social_archives a SET a.employee_id2=a.employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_social_archives drop column employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_social_archives rename column employee_id2 to employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_social_archives MODIFY (employee_id not null);
|
||||
/
|
||||
|
||||
ALTER Table hrsa_fund_archives Add employee_id2 NUMBER(38,0);
|
||||
/
|
||||
|
||||
update hrsa_fund_archives a SET a.employee_id2=a.employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_fund_archives drop column employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_fund_archives rename column employee_id2 to employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_fund_archives MODIFY (employee_id not null);
|
||||
/
|
||||
|
||||
ALTER Table hrsa_other_archives Add employee_id2 NUMBER(38,0);
|
||||
/
|
||||
|
||||
update hrsa_other_archives a SET a.employee_id2=a.employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_other_archives drop column employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_other_archives rename column employee_id2 to employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_other_archives MODIFY (employee_id not null);
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_insurance_base_info ADD employee_type number;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
ALTER TABLE hrsa_social_archives
|
||||
MODIFY COLUMN employee_id bigint;
|
||||
ALTER TABLE hrsa_fund_archives
|
||||
MODIFY COLUMN employee_id bigint;
|
||||
ALTER TABLE hrsa_other_archives
|
||||
MODIFY COLUMN employee_id bigint;
|
||||
|
||||
ALTER TABLE hrsa_insurance_base_info ADD employee_type int NULL;
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
ALTER Table hrsa_social_archives Add employee_id2 NUMBER(38,0)
|
||||
/
|
||||
update hrsa_social_archives a SET a.employee_id2=a.employee_id
|
||||
/
|
||||
alter table hrsa_social_archives drop column employee_id
|
||||
/
|
||||
alter table hrsa_social_archives rename column employee_id2 to employee_id
|
||||
/
|
||||
alter table hrsa_social_archives MODIFY (employee_id not null)
|
||||
/
|
||||
|
||||
ALTER Table hrsa_fund_archives Add employee_id2 NUMBER(38,0)
|
||||
/
|
||||
update hrsa_fund_archives a SET a.employee_id2=a.employee_id
|
||||
/
|
||||
alter table hrsa_fund_archives drop column employee_id
|
||||
/
|
||||
alter table hrsa_fund_archives rename column employee_id2 to employee_id
|
||||
/
|
||||
alter table hrsa_fund_archives MODIFY (employee_id not null)
|
||||
/
|
||||
|
||||
ALTER Table hrsa_other_archives Add employee_id2 NUMBER(38,0)
|
||||
/
|
||||
update hrsa_other_archives a SET a.employee_id2=a.employee_id
|
||||
/
|
||||
alter table hrsa_other_archives drop column employee_id
|
||||
/
|
||||
alter table hrsa_other_archives rename column employee_id2 to employee_id
|
||||
/
|
||||
alter table hrsa_other_archives MODIFY (employee_id not null)
|
||||
/
|
||||
|
||||
|
||||
ALTER TABLE hrsa_insurance_base_info ADD employee_type number
|
||||
/
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
ALTER TABLE hrsa_social_archives
|
||||
ALTER employee_id TYPE bigint;
|
||||
ALTER TABLE hrsa_fund_archives
|
||||
ALTER employee_id TYPE bigint;
|
||||
ALTER TABLE hrsa_other_archives
|
||||
ALTER employee_id TYPE bigint;
|
||||
|
||||
ALTER TABLE hrsa_insurance_base_info ADD employee_type int NULL;
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
ALTER TABLE hrsa_social_archives
|
||||
ALTER COLUMN employee_id bigint
|
||||
GO
|
||||
ALTER TABLE hrsa_fund_archives
|
||||
ALTER COLUMN employee_id bigint
|
||||
GO
|
||||
ALTER TABLE hrsa_other_archives
|
||||
ALTER COLUMN employee_id bigint
|
||||
GO
|
||||
|
||||
|
||||
ALTER TABLE hrsa_insurance_base_info ADD employee_type int NULL
|
||||
GO
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
ALTER Table hrsa_social_archives Add employee_id2 NUMBER(38,0);
|
||||
/
|
||||
|
||||
update hrsa_social_archives a SET a.employee_id2=a.employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_social_archives drop column employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_social_archives rename column employee_id2 to employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_social_archives MODIFY (employee_id not null);
|
||||
/
|
||||
|
||||
ALTER Table hrsa_fund_archives Add employee_id2 NUMBER(38,0);
|
||||
/
|
||||
|
||||
update hrsa_fund_archives a SET a.employee_id2=a.employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_fund_archives drop column employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_fund_archives rename column employee_id2 to employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_fund_archives MODIFY (employee_id not null);
|
||||
/
|
||||
|
||||
ALTER Table hrsa_other_archives Add employee_id2 NUMBER(38,0);
|
||||
/
|
||||
|
||||
update hrsa_other_archives a SET a.employee_id2=a.employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_other_archives drop column employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_other_archives rename column employee_id2 to employee_id;
|
||||
/
|
||||
|
||||
alter table hrsa_other_archives MODIFY (employee_id not null);
|
||||
/
|
||||
|
||||
ALTER TABLE hrsa_insurance_base_info ADD employee_type number;
|
||||
/
|
||||
|
||||
Loading…
Reference in New Issue