diff --git a/script/sql/update/oracle/update_5.0-5.1.sql b/script/sql/update/oracle/update_5.0-5.1.sql index 72f11708..363d4aba 100644 --- a/script/sql/update/oracle/update_5.0-5.1.sql +++ b/script/sql/update/oracle/update_5.0-5.1.sql @@ -148,4 +148,4 @@ insert into sys_role_menu values ('2', '1065'); update sys_dept set leader = null; -ALTER TABLE sys_dept ALTER COLUMN leader TYPE int8; +ALTER TABLE sys_dept MODIFY (leader NUMBER(20)) diff --git a/script/sql/update/postgres/update_5.0-5.1.sql b/script/sql/update/postgres/update_5.0-5.1.sql index 5db2cd14..fa2eb3e7 100644 --- a/script/sql/update/postgres/update_5.0-5.1.sql +++ b/script/sql/update/postgres/update_5.0-5.1.sql @@ -147,4 +147,4 @@ insert into sys_role_menu values ('2', '1065'); update sys_dept set leader = null; -alter table sys_dept modify column leader bigint null default null comment '负责人' after order_num; +ALTER TABLE sys_dept ALTER COLUMN leader TYPE int8;