Skip to content

Commit

Permalink
oracle数据库不支持add column只支持add, NOT NULL必须放在default value后面定义
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Aug 29, 2024
1 parent 6a4fd20 commit ee6b409
Show file tree
Hide file tree
Showing 22 changed files with 203 additions and 201 deletions.
26 changes: 13 additions & 13 deletions nop-auth/deploy/sql/mysql/_add_tenant_nop-auth.sql
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@

alter table nop_auth_dept add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_dept add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_ext_login add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_ext_login add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_group add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_group add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_group_dept add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_group_dept add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_group_user add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_group_user add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_position add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_position add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_resource add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_resource add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_role add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_role add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_role_data_auth add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_role_data_auth add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_role_resource add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_role_resource add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_site add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_site add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_user_role add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_user_role add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_user_substitution add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_user_substitution add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_dept drop primary key;
alter table nop_auth_dept add primary key (NOP_TENANT_ID, DEPT_ID);
Expand Down
90 changes: 45 additions & 45 deletions nop-auth/deploy/sql/mysql/_create_nop-auth.sql

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions nop-auth/deploy/sql/oracle/_add_tenant_nop-auth.sql
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@

alter table nop_auth_dept add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_auth_dept add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_auth_ext_login add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_auth_ext_login add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_auth_group add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_auth_group add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_auth_group_dept add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_auth_group_dept add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_auth_group_user add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_auth_group_user add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_auth_position add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_auth_position add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_auth_resource add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_auth_resource add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_auth_role add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_auth_role add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_auth_role_data_auth add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_auth_role_data_auth add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_auth_role_resource add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_auth_role_resource add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_auth_site add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_auth_site add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_auth_user_role add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_auth_user_role add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_auth_user_substitution add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_auth_user_substitution add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_auth_dept drop constraint PK_nop_auth_dept;
alter table nop_auth_dept add constraint PK_nop_auth_dept primary key (NOP_TENANT_ID, DEPT_ID);
Expand Down
24 changes: 12 additions & 12 deletions nop-auth/deploy/sql/oracle/_create_nop-auth.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ CREATE TABLE nop_auth_role(
ROLE_ID VARCHAR2(50) NOT NULL ,
ROLE_NAME VARCHAR2(50) NOT NULL ,
CHILD_ROLE_IDS VARCHAR2(500) ,
IS_PRIMARY SMALLINT default '0' ,
IS_PRIMARY SMALLINT default '0' ,
DEL_FLAG SMALLINT NOT NULL ,
VERSION INTEGER NOT NULL ,
CREATED_BY VARCHAR2(50) NOT NULL ,
Expand Down Expand Up @@ -87,7 +87,7 @@ CREATE TABLE nop_auth_tenant(
NAME VARCHAR2(100) NOT NULL ,
BEGIN_TIME DATE ,
END_TIME DATE ,
STATUS INTEGER NOT NULL default '1' ,
STATUS INTEGER default '1' NOT NULL ,
DEL_FLAG SMALLINT ,
VERSION INTEGER NOT NULL ,
CREATED_BY VARCHAR2(50) NOT NULL ,
Expand All @@ -110,17 +110,17 @@ CREATE TABLE nop_auth_user(
GENDER INTEGER NOT NULL ,
AVATAR VARCHAR2(100) ,
EMAIL VARCHAR2(100) ,
EMAIL_VERIFIED SMALLINT default '0' ,
EMAIL_VERIFIED SMALLINT default '0' ,
PHONE VARCHAR2(50) ,
PHONE_VERIFIED SMALLINT default '0' ,
PHONE_VERIFIED SMALLINT default '0' ,
BIRTHDAY DATE ,
USER_TYPE INTEGER NOT NULL ,
STATUS INTEGER NOT NULL ,
ID_TYPE VARCHAR2(10) ,
ID_NBR VARCHAR2(100) ,
EXPIRE_AT DATE ,
PWD_UPDATE_TIME DATE ,
CHANGE_PWD_AT_LOGIN SMALLINT default '0' ,
CHANGE_PWD_AT_LOGIN SMALLINT default '0' ,
REAL_NAME VARCHAR2(50) ,
MANAGER_ID VARCHAR2(50) ,
WORK_NO VARCHAR2(100) ,
Expand Down Expand Up @@ -151,14 +151,14 @@ CREATE TABLE nop_auth_resource(
URL VARCHAR2(1000) ,
COMPONENT VARCHAR2(200) ,
TARGET VARCHAR2(50) ,
HIDDEN SMALLINT NOT NULL default '0' ,
KEEP_ALIVE SMALLINT NOT NULL default '0' ,
HIDDEN SMALLINT default '0' NOT NULL ,
KEEP_ALIVE SMALLINT default '0' NOT NULL ,
PERMISSIONS VARCHAR2(200) ,
NO_AUTH SMALLINT NOT NULL default '0' ,
NO_AUTH SMALLINT default '0' NOT NULL ,
DEPENDS VARCHAR2(1000) ,
IS_LEAF SMALLINT NOT NULL default '0' ,
STATUS INTEGER NOT NULL default '1' ,
AUTH_CASCADE_UP SMALLINT default '0' ,
IS_LEAF SMALLINT default '0' NOT NULL ,
STATUS INTEGER default '1' NOT NULL ,
AUTH_CASCADE_UP SMALLINT default '0' ,
Meta_CONFIG VARCHAR2(1000) ,
PROPS_CONFIG VARCHAR2(1000) ,
DEL_FLAG SMALLINT NOT NULL ,
Expand Down Expand Up @@ -291,7 +291,7 @@ CREATE TABLE nop_auth_op_log(
CREATE TABLE nop_auth_group_dept(
DEPT_ID VARCHAR2(50) NOT NULL ,
GROUP_ID VARCHAR2(50) NOT NULL ,
INCLUDE_CHILD SMALLINT NOT NULL default '0' ,
INCLUDE_CHILD SMALLINT default '0' NOT NULL ,
VERSION INTEGER NOT NULL ,
CREATED_BY VARCHAR2(50) NOT NULL ,
CREATE_TIME TIMESTAMP NOT NULL ,
Expand Down
26 changes: 13 additions & 13 deletions nop-auth/deploy/sql/postgresql/_add_tenant_nop-auth.sql
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@

alter table nop_auth_dept add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_dept add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_ext_login add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_ext_login add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_group add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_group add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_group_dept add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_group_dept add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_group_user add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_group_user add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_position add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_position add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_resource add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_resource add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_role add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_role add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_role_data_auth add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_role_data_auth add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_role_resource add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_role_resource add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_site add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_site add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_user_role add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_user_role add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_user_substitution add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_auth_user_substitution add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_auth_dept drop constraint PK_nop_auth_dept;
alter table nop_auth_dept add constraint PK_nop_auth_dept primary key (NOP_TENANT_ID, DEPT_ID);
Expand Down
24 changes: 12 additions & 12 deletions nop-auth/deploy/sql/postgresql/_create_nop-auth.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ CREATE TABLE nop_auth_role(
ROLE_ID VARCHAR(50) NOT NULL ,
ROLE_NAME VARCHAR(50) NOT NULL ,
CHILD_ROLE_IDS VARCHAR(500) ,
IS_PRIMARY INT4 default '0' ,
IS_PRIMARY INT4 default '0' ,
DEL_FLAG INT4 NOT NULL ,
VERSION INT4 NOT NULL ,
CREATED_BY VARCHAR(50) NOT NULL ,
Expand Down Expand Up @@ -87,7 +87,7 @@ CREATE TABLE nop_auth_tenant(
NAME VARCHAR(100) NOT NULL ,
BEGIN_TIME TIMESTAMP ,
END_TIME TIMESTAMP ,
STATUS INT4 NOT NULL default '1' ,
STATUS INT4 default '1' NOT NULL ,
DEL_FLAG INT4 ,
VERSION INT4 NOT NULL ,
CREATED_BY VARCHAR(50) NOT NULL ,
Expand All @@ -110,17 +110,17 @@ CREATE TABLE nop_auth_user(
GENDER INT4 NOT NULL ,
AVATAR VARCHAR(100) ,
EMAIL VARCHAR(100) ,
EMAIL_VERIFIED INT4 default '0' ,
EMAIL_VERIFIED INT4 default '0' ,
PHONE VARCHAR(50) ,
PHONE_VERIFIED INT4 default '0' ,
PHONE_VERIFIED INT4 default '0' ,
BIRTHDAY DATE ,
USER_TYPE INT4 NOT NULL ,
STATUS INT4 NOT NULL ,
ID_TYPE VARCHAR(10) ,
ID_NBR VARCHAR(100) ,
EXPIRE_AT TIMESTAMP ,
PWD_UPDATE_TIME TIMESTAMP ,
CHANGE_PWD_AT_LOGIN INT4 default '0' ,
CHANGE_PWD_AT_LOGIN INT4 default '0' ,
REAL_NAME VARCHAR(50) ,
MANAGER_ID VARCHAR(50) ,
WORK_NO VARCHAR(100) ,
Expand Down Expand Up @@ -151,14 +151,14 @@ CREATE TABLE nop_auth_resource(
URL VARCHAR(1000) ,
COMPONENT VARCHAR(200) ,
TARGET VARCHAR(50) ,
HIDDEN INT4 NOT NULL default '0' ,
KEEP_ALIVE INT4 NOT NULL default '0' ,
HIDDEN INT4 default '0' NOT NULL ,
KEEP_ALIVE INT4 default '0' NOT NULL ,
PERMISSIONS VARCHAR(200) ,
NO_AUTH INT4 NOT NULL default '0' ,
NO_AUTH INT4 default '0' NOT NULL ,
DEPENDS VARCHAR(1000) ,
IS_LEAF INT4 NOT NULL default '0' ,
STATUS INT4 NOT NULL default '1' ,
AUTH_CASCADE_UP INT4 default '0' ,
IS_LEAF INT4 default '0' NOT NULL ,
STATUS INT4 default '1' NOT NULL ,
AUTH_CASCADE_UP INT4 default '0' ,
Meta_CONFIG VARCHAR(1000) ,
PROPS_CONFIG VARCHAR(1000) ,
DEL_FLAG INT4 NOT NULL ,
Expand Down Expand Up @@ -291,7 +291,7 @@ CREATE TABLE nop_auth_op_log(
CREATE TABLE nop_auth_group_dept(
DEPT_ID VARCHAR(50) NOT NULL ,
GROUP_ID VARCHAR(50) NOT NULL ,
INCLUDE_CHILD INT4 NOT NULL default '0' ,
INCLUDE_CHILD INT4 default '0' NOT NULL ,
VERSION INT4 NOT NULL ,
CREATED_BY VARCHAR(50) NOT NULL ,
CREATE_TIME TIMESTAMP NOT NULL ,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,15 @@ public abstract class _DialectFeatures extends io.nop.core.resource.component.Ab
/**
*
* xml name: useAsInFrom
*
* select xx from t as v 这种语句是否允许使用as,oracle不允许使用as
*/
private java.lang.Boolean _useAsInFrom ;

/**
*
* xml name: useGetStringForDate
*
* 使用ResultSet.getString来获取日期时间类型的值。
* h2数据库的Date类型读取存在问题。1899以前的日期按照Date读取会少一天,例如1899-02-03会变成1899-02-02。所以需要改成按照字符串格式读取
*/
private java.lang.Boolean _useGetStringForDate ;

Expand Down Expand Up @@ -607,7 +608,7 @@ public void setSupportWithAsClause(java.lang.Boolean value){
/**
*
* xml name: useAsInFrom
*
* select xx from t as v 这种语句是否允许使用as,oracle不允许使用as
*/

public java.lang.Boolean getUseAsInFrom(){
Expand All @@ -626,7 +627,8 @@ public void setUseAsInFrom(java.lang.Boolean value){
/**
*
* xml name: useGetStringForDate
*
* 使用ResultSet.getString来获取日期时间类型的值。
* h2数据库的Date类型读取存在问题。1899以前的日期按照Date读取会少一天,例如1899-02-03会变成1899-02-02。所以需要改成按照字符串格式读取
*/

public java.lang.Boolean getUseGetStringForDate(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

<geometryTypeHandler>io.nop.orm.geo.dialect.oracle.OracleGeometryTypeHandler</geometryTypeHandler>

<features useAsInFrom="false" />
<rename>
ROWID="rowid"
</rename>
Expand Down Expand Up @@ -97,7 +96,8 @@
</errorCode>
</errorCodes>

<features supportSequence="true" supportNullsFirst="true" supportSomeSubQuery="true" supportReturningForUpdate="true" />
<features supportSequence="true" supportNullsFirst="true" useAsInFrom="false"
supportSomeSubQuery="true" supportReturningForUpdate="true" />

<!--
Oracle使用minus关键字代替SQL标准中的except
Expand Down
2 changes: 1 addition & 1 deletion nop-file/deploy/sql/mysql/_add_tenant_nop-file.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

alter table nop_file_record add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_file_record add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_file_record drop primary key;
alter table nop_file_record add primary key (NOP_TENANT_ID, FILE_ID);
Expand Down
2 changes: 1 addition & 1 deletion nop-file/deploy/sql/mysql/_create_nop-file.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CREATE TABLE nop_file_record(
IS_PUBLIC BOOLEAN NOT NULL COMMENT '是否允许公开访问',
DEL_FLAG TINYINT NOT NULL COMMENT '删除标识',
CREATED_BY VARCHAR(50) NOT NULL COMMENT '创建人',
CREATE_TIME TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT '创建时间',
CREATE_TIME TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP(3) NOT NULL COMMENT '创建时间',
REMARK VARCHAR(200) NULL COMMENT '备注',
constraint PK_nop_file_record primary key (FILE_ID)
);
Expand Down
2 changes: 1 addition & 1 deletion nop-file/deploy/sql/oracle/_add_tenant_nop-file.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

alter table nop_file_record add column NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;
alter table nop_file_record add NOP_TENANT_ID VARCHAR2(32) DEFAULT '0' NOT NULL;

alter table nop_file_record drop constraint PK_nop_file_record;
alter table nop_file_record add constraint PK_nop_file_record primary key (NOP_TENANT_ID, FILE_ID);
Expand Down
2 changes: 1 addition & 1 deletion nop-file/deploy/sql/postgresql/_add_tenant_nop-file.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

alter table nop_file_record add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_file_record add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_file_record drop constraint PK_nop_file_record;
alter table nop_file_record add constraint PK_nop_file_record primary key (NOP_TENANT_ID, FILE_ID);
Expand Down
24 changes: 12 additions & 12 deletions nop-sys/deploy/sql/mysql/_add_tenant_nop-sys.sql
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@

alter table nop_sys_checker_record add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_sys_checker_record add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_sys_cluster_leader add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_sys_cluster_leader add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_sys_code_rule add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_sys_code_rule add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_sys_dict add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_sys_dict add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_sys_dict_option add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_sys_dict_option add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_sys_ext_field add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_sys_ext_field add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_sys_i18n add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_sys_i18n add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_sys_lock add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_sys_lock add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_sys_notice_template add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_sys_notice_template add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_sys_sequence add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_sys_sequence add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_sys_user_variable add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_sys_user_variable add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_sys_variable add column NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;
alter table nop_sys_variable add NOP_TENANT_ID VARCHAR(32) DEFAULT '0' NOT NULL;

alter table nop_sys_checker_record drop primary key;
alter table nop_sys_checker_record add primary key (NOP_TENANT_ID, SID);
Expand Down
Loading

0 comments on commit ee6b409

Please sign in to comment.