Skip to content

Commit

Permalink
Update default value of boolean values for oracle 23c
Browse files Browse the repository at this point in the history
  • Loading branch information
HeshanSudarshana committed Apr 2, 2024
1 parent 8a2cbd6 commit d0c3921
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ CREATE TABLE IDN_OAUTH_CONSUMER_APPS (
OAUTH_VERSION VARCHAR2 (128),
CALLBACK_URL VARCHAR2 (2048),
GRANT_TYPES VARCHAR (1024),
PKCE_MANDATORY BOOLEAN DEFAULT '0',
PKCE_SUPPORT_PLAIN BOOLEAN DEFAULT '0',
PKCE_MANDATORY BOOLEAN DEFAULT FALSE,
PKCE_SUPPORT_PLAIN BOOLEAN DEFAULT FALSE,
APP_STATE VARCHAR (25) DEFAULT 'ACTIVE',
USER_ACCESS_TOKEN_EXPIRE_TIME NUMBER(19) DEFAULT 3600,
APP_ACCESS_TOKEN_EXPIRE_TIME NUMBER(19) DEFAULT 3600,
Expand Down Expand Up @@ -340,19 +340,19 @@ CREATE TABLE SP_APP (
ROLE_CLAIM VARCHAR (512),
AUTH_TYPE VARCHAR (255) NOT NULL,
PROVISIONING_USERSTORE_DOMAIN VARCHAR (512),
IS_LOCAL_CLAIM_DIALECT BOOLEAN DEFAULT '1',
IS_SEND_LOCAL_SUBJECT_ID BOOLEAN DEFAULT '0',
IS_SEND_AUTH_LIST_OF_IDPS BOOLEAN DEFAULT '0',
IS_USE_TENANT_DOMAIN_SUBJECT BOOLEAN DEFAULT '1',
IS_USE_USER_DOMAIN_SUBJECT BOOLEAN DEFAULT '1',
ENABLE_AUTHORIZATION BOOLEAN DEFAULT '0',
IS_LOCAL_CLAIM_DIALECT BOOLEAN DEFAULT TRUE,
IS_SEND_LOCAL_SUBJECT_ID BOOLEAN DEFAULT FALSE,
IS_SEND_AUTH_LIST_OF_IDPS BOOLEAN DEFAULT FALSE,
IS_USE_TENANT_DOMAIN_SUBJECT BOOLEAN DEFAULT TRUE,
IS_USE_USER_DOMAIN_SUBJECT BOOLEAN DEFAULT TRUE,
ENABLE_AUTHORIZATION BOOLEAN DEFAULT FALSE,
SUBJECT_CLAIM_URI VARCHAR (512),
IS_SAAS_APP BOOLEAN DEFAULT '0',
IS_DUMB_MODE BOOLEAN DEFAULT '0',
IS_SAAS_APP BOOLEAN DEFAULT FALSE,
IS_DUMB_MODE BOOLEAN DEFAULT FALSE,
UUID CHAR(36),
IMAGE_URL VARCHAR(1024),
ACCESS_URL VARCHAR(1024),
IS_DISCOVERABLE BOOLEAN DEFAULT '0',
IS_DISCOVERABLE BOOLEAN DEFAULT FALSE,
PRIMARY KEY (ID))
/
ALTER TABLE SP_APP ADD CONSTRAINT APPLICATION_NAME_CONSTRAINT UNIQUE(APP_NAME, TENANT_ID)
Expand Down Expand Up @@ -388,8 +388,8 @@ CREATE TABLE SP_AUTH_STEP (
TENANT_ID INTEGER NOT NULL,
STEP_ORDER INTEGER DEFAULT 1,
APP_ID INTEGER NOT NULL,
IS_SUBJECT_STEP BOOLEAN DEFAULT '0',
IS_ATTRIBUTE_STEP BOOLEAN DEFAULT '0',
IS_SUBJECT_STEP BOOLEAN DEFAULT FALSE,
IS_ATTRIBUTE_STEP BOOLEAN DEFAULT FALSE,
PRIMARY KEY (ID))
/
ALTER TABLE SP_AUTH_STEP ADD CONSTRAINT APPLICATION_ID_CONSTRAINT_STEP FOREIGN KEY (APP_ID) REFERENCES SP_APP (ID) ON DELETE CASCADE
Expand Down Expand Up @@ -449,9 +449,9 @@ CREATE TABLE SP_PROVISIONING_CONNECTOR (
IDP_NAME VARCHAR (255) NOT NULL ,
CONNECTOR_NAME VARCHAR (255) NOT NULL ,
APP_ID INTEGER NOT NULL,
IS_JIT_ENABLED BOOLEAN DEFAULT '0',
BLOCKING BOOLEAN DEFAULT '0',
RULE_ENABLED BOOLEAN DEFAULT '0' NOT NULL,
IS_JIT_ENABLED BOOLEAN DEFAULT FALSE,
BLOCKING BOOLEAN DEFAULT FALSE,
RULE_ENABLED BOOLEAN DEFAULT FALSE NOT NULL,
PRIMARY KEY (ID))
/
ALTER TABLE SP_PROVISIONING_CONNECTOR ADD CONSTRAINT PRO_CONNECTOR_APPID_CONSTRAINT FOREIGN KEY (APP_ID) REFERENCES SP_APP (ID) ON DELETE CASCADE
Expand All @@ -462,7 +462,7 @@ CREATE TABLE SP_AUTH_SCRIPT (
APP_ID INTEGER NOT NULL,
TYPE VARCHAR(255) NOT NULL,
CONTENT BLOB DEFAULT NULL,
IS_ENABLED BOOLEAN DEFAULT '0',
IS_ENABLED BOOLEAN DEFAULT FALSE,
PRIMARY KEY (ID)
)
/
Expand All @@ -480,7 +480,7 @@ CREATE TABLE IDN_AUTH_WAIT_STATUS (
ID INTEGER NOT NULL,
TENANT_ID INTEGER NOT NULL,
LONG_WAIT_KEY VARCHAR(255) NOT NULL,
WAIT_STATUS BOOLEAN DEFAULT '1',
WAIT_STATUS BOOLEAN DEFAULT TRUE,
TIME_CREATED TIMESTAMP,
EXPIRE_TIME TIMESTAMP,
PRIMARY KEY (ID),
Expand All @@ -491,22 +491,22 @@ CREATE TABLE IDP (
ID INTEGER,
TENANT_ID INTEGER,
NAME VARCHAR(254) NOT NULL,
IS_ENABLED BOOLEAN DEFAULT '1',
IS_PRIMARY BOOLEAN DEFAULT '0',
IS_ENABLED BOOLEAN DEFAULT TRUE,
IS_PRIMARY BOOLEAN DEFAULT FALSE,
HOME_REALM_ID VARCHAR(254),
IMAGE BLOB,
CERTIFICATE BLOB,
ALIAS VARCHAR(254),
INBOUND_PROV_ENABLED BOOLEAN DEFAULT '0',
INBOUND_PROV_ENABLED BOOLEAN DEFAULT FALSE,
INBOUND_PROV_USER_STORE_ID VARCHAR(254),
USER_CLAIM_URI VARCHAR(254),
ROLE_CLAIM_URI VARCHAR(254),
DESCRIPTION VARCHAR(1024),
DEFAULT_AUTHENTICATOR_NAME VARCHAR(254),
DEFAULT_PRO_CONNECTOR_NAME VARCHAR(254),
PROVISIONING_ROLE VARCHAR(128),
IS_FEDERATION_HUB BOOLEAN DEFAULT '0',
IS_LOCAL_CLAIM_DIALECT BOOLEAN DEFAULT '0',
IS_FEDERATION_HUB BOOLEAN DEFAULT FALSE,
IS_LOCAL_CLAIM_DIALECT BOOLEAN DEFAULT FALSE,
DISPLAY_NAME VARCHAR(255),
IMAGE_URL VARCHAR(1024),
UUID CHAR(36) NOT NULL,
Expand Down Expand Up @@ -559,7 +559,7 @@ CREATE TABLE IDP_AUTHENTICATOR (
TENANT_ID INTEGER,
IDP_ID INTEGER,
NAME VARCHAR(255) NOT NULL,
IS_ENABLED BOOLEAN DEFAULT '1',
IS_ENABLED BOOLEAN DEFAULT TRUE,
DISPLAY_NAME VARCHAR(255),
PRIMARY KEY (ID),
UNIQUE (TENANT_ID, IDP_ID, NAME),
Expand All @@ -582,7 +582,7 @@ CREATE TABLE IDP_AUTHENTICATOR_PROPERTY (
AUTHENTICATOR_ID INTEGER,
PROPERTY_KEY VARCHAR(255) NOT NULL,
PROPERTY_VALUE VARCHAR(2047),
IS_SECRET BOOLEAN DEFAULT '0',
IS_SECRET BOOLEAN DEFAULT FALSE,
PRIMARY KEY (ID),
UNIQUE (TENANT_ID, AUTHENTICATOR_ID, PROPERTY_KEY),
FOREIGN KEY (AUTHENTICATOR_ID) REFERENCES IDP_AUTHENTICATOR(ID) ON DELETE CASCADE)
Expand All @@ -592,9 +592,9 @@ CREATE TABLE IDP_PROVISIONING_CONFIG (
TENANT_ID INTEGER,
IDP_ID INTEGER,
PROVISIONING_CONNECTOR_TYPE VARCHAR(255) NOT NULL,
IS_ENABLED BOOLEAN DEFAULT '0',
IS_BLOCKING BOOLEAN DEFAULT '0',
IS_RULES_ENABLED BOOLEAN DEFAULT '0',
IS_ENABLED BOOLEAN DEFAULT FALSE,
IS_BLOCKING BOOLEAN DEFAULT FALSE,
IS_RULES_ENABLED BOOLEAN DEFAULT FALSE,
PRIMARY KEY (ID),
UNIQUE (TENANT_ID, IDP_ID, PROVISIONING_CONNECTOR_TYPE),
FOREIGN KEY (IDP_ID) REFERENCES IDP(ID) ON DELETE CASCADE)
Expand All @@ -607,7 +607,7 @@ CREATE TABLE IDP_PROV_CONFIG_PROPERTY (
PROPERTY_VALUE VARCHAR(2048),
PROPERTY_BLOB_VALUE BLOB,
PROPERTY_TYPE CHAR(32) NOT NULL,
IS_SECRET BOOLEAN DEFAULT '0',
IS_SECRET BOOLEAN DEFAULT FALSE,
PRIMARY KEY (ID),
UNIQUE (TENANT_ID, PROVISIONING_CONFIG_ID, PROPERTY_KEY),
FOREIGN KEY (PROVISIONING_CONFIG_ID) REFERENCES IDP_PROVISIONING_CONFIG(ID) ON DELETE CASCADE)
Expand Down Expand Up @@ -677,7 +677,7 @@ CREATE TABLE FIDO2_DEVICE_STORE (
SIGNATURE_COUNT NUMBER(19),
USER_IDENTITY VARCHAR(512) NOT NULL,
DISPLAY_NAME VARCHAR(255),
IS_USERNAMELESS_SUPPORTED BOOLEAN DEFAULT '0',
IS_USERNAMELESS_SUPPORTED BOOLEAN DEFAULT FALSE,
PRIMARY KEY (CREDENTIAL_ID, USER_HANDLE))
/
CREATE TABLE WF_REQUEST (
Expand Down Expand Up @@ -716,7 +716,7 @@ CREATE TABLE WF_WORKFLOW_ASSOCIATION(
EVENT_ID VARCHAR2(45),
ASSOC_CONDITION VARCHAR2 (2000),
WORKFLOW_ID VARCHAR2 (45),
IS_ENABLED BOOLEAN DEFAULT '1',
IS_ENABLED BOOLEAN DEFAULT TRUE,
TENANT_ID INTEGER DEFAULT -1,
PRIMARY KEY(ID),
FOREIGN KEY (WORKFLOW_ID) REFERENCES WF_WORKFLOW(ID)ON DELETE CASCADE)
Expand Down Expand Up @@ -873,9 +873,9 @@ CREATE TABLE IDN_OIDC_REQ_OBJECT_CLAIMS (
ID INTEGER,
REQ_OBJECT_ID INTEGER ,
CLAIM_ATTRIBUTE VARCHAR(255) ,
ESSENTIAL BOOLEAN DEFAULT '0',
ESSENTIAL BOOLEAN DEFAULT FALSE,
VALUE VARCHAR(255),
IS_USERINFO BOOLEAN DEFAULT '0',
IS_USERINFO BOOLEAN DEFAULT FALSE,
PRIMARY KEY (ID),
FOREIGN KEY (REQ_OBJECT_ID) REFERENCES IDN_OIDC_REQ_OBJECT_REFERENCE(ID) ON DELETE CASCADE)
/
Expand Down Expand Up @@ -1804,7 +1804,7 @@ CREATE TABLE AM_QUERY_PARAMETER_CONDITION (
CONDITION_GROUP_ID INTEGER NOT NULL,
PARAMETER_NAME VARCHAR2(255) DEFAULT NULL,
PARAMETER_VALUE VARCHAR2(255) DEFAULT NULL,
IS_PARAM_MAPPING BOOLEAN DEFAULT 1,
IS_PARAM_MAPPING BOOLEAN DEFAULT TRUE,
PRIMARY KEY (QUERY_PARAMETER_ID),
FOREIGN KEY (CONDITION_GROUP_ID) REFERENCES AM_CONDITION_GROUP(CONDITION_GROUP_ID) ON DELETE CASCADE
)
Expand All @@ -1814,7 +1814,7 @@ CREATE TABLE AM_HEADER_FIELD_CONDITION (
CONDITION_GROUP_ID INTEGER NOT NULL,
HEADER_FIELD_NAME VARCHAR2(255) DEFAULT NULL,
HEADER_FIELD_VALUE VARCHAR2(255) DEFAULT NULL,
IS_HEADER_FIELD_MAPPING BOOLEAN DEFAULT 1,
IS_HEADER_FIELD_MAPPING BOOLEAN DEFAULT TRUE,
PRIMARY KEY (HEADER_FIELD_ID),
FOREIGN KEY (CONDITION_GROUP_ID) REFERENCES AM_CONDITION_GROUP(CONDITION_GROUP_ID) ON DELETE CASCADE
)
Expand All @@ -1824,7 +1824,7 @@ CREATE TABLE AM_JWT_CLAIM_CONDITION (
CONDITION_GROUP_ID INTEGER NOT NULL,
CLAIM_URI VARCHAR2(512) DEFAULT NULL,
CLAIM_ATTRIB VARCHAR2(1024) DEFAULT NULL,
IS_CLAIM_MAPPING BOOLEAN DEFAULT 1,
IS_CLAIM_MAPPING BOOLEAN DEFAULT TRUE,
PRIMARY KEY (JWT_CLAIM_ID),
FOREIGN KEY (CONDITION_GROUP_ID) REFERENCES AM_CONDITION_GROUP(CONDITION_GROUP_ID) ON DELETE CASCADE
)
Expand All @@ -1834,7 +1834,7 @@ CREATE TABLE AM_IP_CONDITION (
STARTING_IP VARCHAR2(45) NULL,
ENDING_IP VARCHAR2(45) NULL,
SPECIFIC_IP VARCHAR2(45) NULL,
WITHIN_IP_RANGE BOOLEAN DEFAULT 1,
WITHIN_IP_RANGE BOOLEAN DEFAULT TRUE,
CONDITION_GROUP_ID INTEGER NULL,
PRIMARY KEY (AM_IP_CONDITION_ID)
, CONSTRAINT fk_AM_IP_CONDITION_1 FOREIGN KEY (CONDITION_GROUP_ID)
Expand Down Expand Up @@ -1979,7 +1979,7 @@ CREATE TABLE AM_KEY_MANAGER (
DESCRIPTION VARCHAR(256) NULL,
TYPE VARCHAR(45) NULL,
CONFIGURATION BLOB NULL,
ENABLED BOOLEAN DEFAULT 1,
ENABLED BOOLEAN DEFAULT TRUE,
ORGANIZATION VARCHAR(100) NULL,
TOKEN_TYPE VARCHAR(45) NULL,
EXTERNAL_REFERENCE_ID VARCHAR(100) NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ CREATE TABLE UM_ROLE (
UM_ID INTEGER,
UM_ROLE_NAME VARCHAR2(255) NOT NULL,
UM_TENANT_ID INTEGER DEFAULT 0,
UM_SHARED_ROLE BOOLEAN DEFAULT 0,
UM_SHARED_ROLE BOOLEAN DEFAULT FALSE,
PRIMARY KEY (UM_ID, UM_TENANT_ID),
UNIQUE(UM_ROLE_NAME, UM_TENANT_ID))
/
Expand Down

0 comments on commit d0c3921

Please sign in to comment.