|
|
@ -161,11 +161,13 @@ CREATE INDEX IF NOT EXISTS REG_RESOURCE_TAG_IND_BY_VERSION ON REG_RESOURCE_TAG(R
|
|
|
|
CREATE TABLE IF NOT EXISTS REG_PROPERTY (
|
|
|
|
CREATE TABLE IF NOT EXISTS REG_PROPERTY (
|
|
|
|
REG_ID INTEGER NOT NULL AUTO_INCREMENT,
|
|
|
|
REG_ID INTEGER NOT NULL AUTO_INCREMENT,
|
|
|
|
REG_NAME VARCHAR(100) NOT NULL,
|
|
|
|
REG_NAME VARCHAR(100) NOT NULL,
|
|
|
|
REG_VALUE VARCHAR(10000),
|
|
|
|
REG_VALUE VARCHAR(1000),
|
|
|
|
REG_TENANT_ID INTEGER DEFAULT 0,
|
|
|
|
REG_TENANT_ID INTEGER DEFAULT 0,
|
|
|
|
CONSTRAINT PK_REG_PROPERTY PRIMARY KEY(REG_ID, REG_TENANT_ID)
|
|
|
|
CONSTRAINT PK_REG_PROPERTY PRIMARY KEY(REG_ID, REG_TENANT_ID)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE REG_PROPERTY ALTER COLUMN REG_VALUE varchar(10000);
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS REG_RESOURCE_PROPERTY (
|
|
|
|
CREATE TABLE IF NOT EXISTS REG_RESOURCE_PROPERTY (
|
|
|
|
REG_PROPERTY_ID INTEGER NOT NULL,
|
|
|
|
REG_PROPERTY_ID INTEGER NOT NULL,
|
|
|
|
REG_VERSION INTEGER,
|
|
|
|
REG_VERSION INTEGER,
|
|
|
@ -329,7 +331,7 @@ CREATE TABLE IF NOT EXISTS UM_SHARED_USER_ROLE(
|
|
|
|
UM_ROLE_TENANT_ID INTEGER NOT NULL,
|
|
|
|
UM_ROLE_TENANT_ID INTEGER NOT NULL,
|
|
|
|
UNIQUE(UM_USER_ID,UM_ROLE_ID,UM_USER_TENANT_ID, UM_ROLE_TENANT_ID),
|
|
|
|
UNIQUE(UM_USER_ID,UM_ROLE_ID,UM_USER_TENANT_ID, UM_ROLE_TENANT_ID),
|
|
|
|
FOREIGN KEY(UM_ROLE_ID,UM_ROLE_TENANT_ID) REFERENCES UM_ROLE(UM_ID,UM_TENANT_ID) ON DELETE CASCADE ,
|
|
|
|
FOREIGN KEY(UM_ROLE_ID,UM_ROLE_TENANT_ID) REFERENCES UM_ROLE(UM_ID,UM_TENANT_ID) ON DELETE CASCADE ,
|
|
|
|
FOREIGN KEY(UM_USER_ID,UM_USER_TENANT_ID) REFERENCES UM_USER(UM_ID,UM_TENANT_ID) ON DELETE CASCADE
|
|
|
|
FOREIGN KEY(UM_USER_ID,UM_USER_TENANT_ID) REFERENCES UM_USER(UM_ID,UM_TENANT_ID) ON DELETE CASCADE
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS UM_ACCOUNT_MAPPING(
|
|
|
|
CREATE TABLE IF NOT EXISTS UM_ACCOUNT_MAPPING(
|
|
|
|