Setup
The easiest way to run this container is by creating a shell script containing the commands you want to run and mapping it to the /opt/app/policy/bin/ directory (see sample test below). You would then call his script once the container was up and had access to your database.
The first thing you need to do is set you policy home:
...
This will copy the upgrade files from /home/policy/sql to $POLICY_HOME/etc/db/migration/<SCHEMA NAME>/sql/
It will also create a master upgrade script for each release
e.g. 01-honolulu.upgrade.sql, 02-istanbul.upgrade.sql
The master script calls the Each individual sql files that make up that release will be run as part of the upgrade.
Downgrade
Prior to downgrading run the following script:
...
This will copy the downgrade files from /home/policy/sql to $POLICY_HOME/etc/db/migration/<SCHEMA NAME>/sql/
It will also create a master downgrade script for each release
e.g. 01-honolulu.downgrade.sql, 02-istanbul.downgrade.sql
The master script calls the Each individual sql files that make up that release will be run as part of the downgrade downgrade.
Sample Test
export POLICY_HOME=/opt/app/policy
export SQL_USER=policy_user
export SQL_PASSWORD=*******
export SQL_HOST=mariadb
...
/opt/app/policy/bin/db-migrator -s policyadmin -o report
sleep 5
/opt/app/policy/bin/prepare_downgrade.sh policyadmin
/opt/app/policy/bin/db-migrator -s policyadmin -o downgrade -f 2 0900 -t 00800
/opt/app/policy/bin/db-migrator -s policyadmin -o report
...
drools-db-migration | Preparing 01-honolulu.upgrade.sqlupgrade release version: 0800
drools-db-migration | Preparing 02-istanbul.upgrade.sqlupgrade release version: 0900
drools-db-migration | Done
drools-db-migration | name version
drools-db-migration | policyadmin 0
drools-db-migration | policyadmin: upgrade available: 0 -> 020900
drools-db-migration | upgrade: 0 -> 020900
drools-db-migration |
drools-db-migration | > upgrade 010100-honolulujpapdpgroup_properties.upgrade.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpapdpgroup_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES VARCHAR(255) NULL, PROPERTIES_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0110-jpapdpstatistics_enginestats.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpapdpstatistics_enginestats (AVERAGEEXECUTIONTIME DOUBLE DEFAULT NULL NULL, ENGINEID VARCHAR(255) NULL, ENGINETIMESTAMP BIGINT DEFAULT NULL NULL, ENGINEWORKERSTATE INT DEFAULT NULL NULL, EVENTCOUNT BIGINT DEFAULT NULL NULL, LASTENTERTIME BIGINT DEFAULT NULL NULL, LASTEXECUTIONTIME BIGINT DEFAULT NULL NULL, LASTSTART BIGINT DEFAULT NULL NULL, UPTIME BIGINT DEFAULT NULL NULL, ID BIGINT DEFAULT NULL NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0120-jpapdpsubgroup_policies.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpapdpsubgroup_policies (name VARCHAR(120) NULL, version VARCHAR(20) NULL, parentLocalName VARCHAR(120) NULL, localName VARCHAR(120) NULL, parentKeyVersion VARCHAR(15) NULL, parentKeyName VARCHAR(120) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0130-jpapdpsubgroup_properties.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpapdpsubgroup_properties (parentLocalName VARCHAR(120) NULL, localName VARCHAR(120) NULL, parentKeyVersion VARCHAR(15) NULL, parentKeyName VARCHAR(120) NULL, PROPERTIES VARCHAR(255) NULL, PROPERTIES_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0140-jpapdpsubgroup_supportedpolicytypes.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpapdpsubgroup_supportedpolicytypes (name VARCHAR(120) NULL, version VARCHAR(20) NULL, parentLocalName VARCHAR(120) NULL, localName VARCHAR(120) NULL, parentKeyVersion VARCHAR(15) NULL, parentKeyName VARCHAR(120) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0150-jpatoscacapabilityassignment_attributes.sql
drools-db-migration | ----------
drools-db---
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscacapabilityassignment_attributes (name VARCHAR(120) NULL, version VARCHAR(20) NULL, ATTRIBUTES LONGTEXT NULL, ATTRIBUTES_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0160-jpatoscacapabilityassignment_metadata.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscacapabilityassignment_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0170-jpatoscacapabilityassignment_occurrences.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscacapabilityassignment_occurrences (name VARCHAR(120) NULL, version VARCHAR(20) NULL, OCCURRENCES INT DEFAULT NULL NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0180-jpatoscacapabilityassignment_properties.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscacapabilityassignment_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGTEXT NULL, PROPERTIES_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0190-jpatoscacapabilitytype_metadata.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscacapabilitytype_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0200-jpatoscacapabilitytype_properties.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscacapabilitytype_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGBLOB DEFAULT NULL NULL, PROPERTIES_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0210-jpatoscadatatype_constraints.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscadatatype_constraints (name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINTS VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0220-jpatoscadatatype_metadata.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscadatatype_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0230-jpatoscadatatype_properties.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscadatatype_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGBLOB DEFAULT NULL NULL, PROPERTIES_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0240-jpatoscanodetemplate_metadata.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscanodetemplate_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0250-jpatoscanodetemplate_properties.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscanodetemplate_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGTEXT NULL, PROPERTIES_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0260-jpatoscanodetype_metadata.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscanodetype_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0270-jpatoscanodetype_properties.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscanodetype_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGBLOB DEFAULT NULL NULL, PROPERTIES_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration | --------------
drools-db-migration | > upgrade 0280-jpatoscapolicy_metadata.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscapolicy_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0290-jpatoscapolicy_properties.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscapolicy_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGTEXT NULL, PROPERTIES_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0300-jpatoscapolicy_targets.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscapolicy_targets (name VARCHAR(120) NULL, version VARCHAR(20) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0310-jpatoscapolicytype_metadata.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscapolicytype_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0320-jpatoscapolicytype_properties.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscapolicytype_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGBLOB DEFAULT NULL NULL, PROPERTIES_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0330-jpatoscapolicytype_targets.sql
drools-db-migration | ---------
drools-db-----
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscapolicytype_targets (name VARCHAR(120) NULL, version VARCHAR(20) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0340-jpatoscapolicytype_triggers.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscapolicytype_triggers (name VARCHAR(120) NULL, version VARCHAR(20) NULL, TRIGGERS VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0350-jpatoscaproperty_constraints.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscaproperty_constraints (parentLocalName VARCHAR(120) NULL, localName VARCHAR(120) NULL, parentKeyVersion VARCHAR(15) NULL, parentKeyName VARCHAR(120) NULL, CONSTRAINTS VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0360-jpatoscaproperty_metadata.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscaproperty_metadata (parentLocalName VARCHAR(120) NULL, localName VARCHAR(120) NULL, parentKeyVersion VARCHAR(15) NULL, parentKeyName VARCHAR(120) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0370-jpatoscarelationshiptype_metadata.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscarelationshiptype_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0380-jpatoscarelationshiptype_properties.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscarelationshiptype_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGBLOB DEFAULT NULL NULL, PROPERTIES_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0390-jpatoscarequirement_metadata.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscarequirement_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0400-jpatoscarequirement_occurrences.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscarequirement_occurrences (name VARCHAR(120) NULL, version VARCHAR(20) NULL, OCCURRENCES INT DEFAULT NULL NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0410-jpatoscarequirement_properties.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscarequirement_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGTEXT NULL, PROPERTIES_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0420-jpatoscaservicetemplate_metadata.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscaservicetemplate_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0430-jpatoscatopologytemplate_inputs.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpatoscatopologytemplate_inputs (parentLocalName VARCHAR(120) NULL, localName VARCHAR(120) NULL, parentKeyVersion VARCHAR(15) NULL, parentKeyName VARCHAR(120) NULL, INPUTS LONGBLOB DEFAULT NULL NULL, INPUTS_KEY VARCHAR(255) NULL)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0440-pdpgroup_pdpsubgroup.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS pdp (HEALTHY INT DEFAULT NULL NULL, MESSAGE VARCHAR(255) NULL, PDPSTATE INT DEFAULT NULL NULL, pdpgroup_pdpsubgroup (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, CONSTRAINT PK_PDPGROUP_PDP PDPSUBGROUP PRIMARY KEY (name, version, parentLocalName, localName, parentKeyVersion, parentKeyName))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0450-pdpgroup.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS pdpgroup (`DESCRIPTION` VARCHAR(255) NULL, PDPGROUPSTATE INT DEFAULT NULL NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_PDPGROUP PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0460-pdppolicystatus.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS pdpgroup_pdpsubgroup (name pdppolicystatus (DEPLOY BIT DEFAULT 0 NULL, PDPGROUP VARCHAR(120255) NOT NULL, version PDPTYPE VARCHAR(20) NOT 255) NULL, STATE INT DEFAULT NULL NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINT PK_PDPGROUP_PDPSUBGROUP PDPPOLICYSTATUS PRIMARY KEY (name, version, parentLocalName, localName, parentKeyVersion, parentKeyName))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0470-pdp.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS pdppolicystatus pdp (DEPLOY BIT HEALTHY INT DEFAULT 0 NULL , PDPGROUP VARCHAR(255) NULL, PDPTYPE MESSAGE VARCHAR(255) NULL, STATE PDPSTATE INT DEFAULT NULL NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINT PK_PDPPOLICYSTATUS PDP PRIMARY KEY (parentLocalName, localName, parentKeyVersion, parentKeyName))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0480-pdpstatistics.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS pdpstatistics (PDPGROUPNAME VARCHAR(120) NULL, PDPSUBGROUPNAME VARCHAR(120) NULL, POLICYDEPLOYCOUNT BIGINT DEFAULT NULL NULL, POLICYDEPLOYFAILCOUNT BIGINT DEFAULT NULL NULL, POLICYDEPLOYSUCCESSCOUNT BIGINT DEFAULT NULL NULL, POLICYEXECUTEDCOUNT BIGINT DEFAULT NULL NULL, POLICYEXECUTEDFAILCOUNT BIGINT DEFAULT NULL NULL, POLICYEXECUTEDSUCCESSCOUNT BIGINT DEFAULT NULL NULL, TIMESTAMP datetime DEFAULT NULL NULL, ID BIGINT NOT NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_PDPSTATISTICS PRIMARY KEY (ID, name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0490-pdpsubgroup_pdp.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS pdpsubgroup (CURRENTINSTANCECOUNT INT DEFAULT NULL NULL, DESIREDINSTANCECOUNT INT DEFAULT NULL _pdp (pdpParentKeyName VARCHAR(120) NOT NULL, pdpParentKeyVersion VARCHAR(15) NOT NULL, pdpParentLocalName VARCHAR(120) NOT NULL, pdpLocalName VARCHAR(120) NOT NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, CONSTRAINT PK_PDPSUBGROUP_PDP PRIMARY KEY (pdpParentKeyName, pdpParentKeyVersion, pdpParentLocalName, pdpLocalName, parentLocalName, localName, parentKeyVersion, parentKeyName))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0500-pdpsubgroup.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS pdpsubgroup _pdp (pdpParentKeyName VARCHAR(120) NOT NULL, pdpParentKeyVersion VARCHAR(15) NOT NULL, pdpParentLocalName VARCHAR(120) NOT NULL, pdpLocalName VARCHAR(120) NOT (CURRENTINSTANCECOUNT INT DEFAULT NULL NULL, DESIREDINSTANCECOUNT INT DEFAULT NULL NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, CONSTRAINT PK_PDPSUBGROUP _PDP PRIMARY KEY (pdpParentKeyName, pdpParentKeyVersion, pdpParentLocalName, pdpLocalName, parentLocalName, localName, parentKeyVersion, parentKeyName))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-----migration | > upgrade 0510-toscacapabilityassignment.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscacapabilityassignment (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, type_name VARCHAR(255) NULL, type_version VARCHAR(255) NULL, CONSTRAINT PK_TOSCACAPABILITYASSIGNMENT PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0520-toscacapabilityassignments.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscacapabilityassignments (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_TOSCACAPABILITYASSIGNMENTS PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0530-toscacapabilityassignments_toscacapabilityassignment.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscacapabilityassignments_toscacapabilityassignment (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINT PK_TOSCACAPABILITYASSIGNMENTS_TOSCACAPABILITYASSIGNMENT PRIMARY KEY (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0540-toscacapabilitytype.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscacapabilitytype (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_TOSCACAPABILITYTYPE PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0550-toscacapabilitytypes.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscacapabilitytypes (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_TOSCACAPABILITYTYPES PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0560-toscacapabilitytypes_toscacapabilitytype.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscacapabilitytypes_toscacapabilitytype (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINT PK_TOSCACAPABILITYTYPES_TOSCACAPABILITYTYPE PRIMARY KEY (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0570-toscadatatype.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscadatatype (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_TOSCADATATYPE PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0580-toscadatatypes.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscadatatypes (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_TOSCADATATYPES PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0590-toscadatatypes_toscadatatype.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscadatatypes_toscadatatype (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINT PK_TOSCADATATYPES_TOSCADATATYPE PRIMARY KEY (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0600-toscanodetemplate.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscanodetemplate (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, type_name VARCHAR(255) NULL, type_version VARCHAR(255) NULL, capabilitiesName VARCHAR(120) NULL, capabilitiesVersion VARCHAR(20) NULL, requirementsVersion VARCHAR(20) NULL, requirementsName VARCHAR(120) NULL, CONSTRAINT PK_TOSCANODETEMPLATE PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0610-toscanodetemplates.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscanodetemplates (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_TOSCANODETEMPLATES PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0620-toscanodetemplates_toscanodetemplate.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscanodetemplates_toscanodetemplate (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINT PK_TOSCANODETEMPLATES_TOSCANODETEMPLATE PRIMARY KEY (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0630-toscanodetype.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscanodetype (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, requirementsVersion VARCHAR(20) NULL, requirementsName VARCHAR(120) NULL, CONSTRAINT PK_TOSCANODETYPE PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0640-toscanodetypes.sql
drools-db-migration | ----------
drools-db---
drools-db-migration | CREATE TABLE IF NOT EXISTS toscanodetypes (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_TOSCANODETYPES PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0650-toscanodetypes_toscanodetype.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscanodetypes_toscanodetype (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINT PK_TOSCANODETYPES_TOSCANODETYPE PRIMARY KEY (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0660-toscaparameter.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscaparameter (VALUE VARCHAR(255) NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINT PK_TOSCAPARAMETER PRIMARY KEY (parentLocalName, localName, parentKeyVersion, parentKeyName))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0670-toscapolicies.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscapolicies (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_TOSCAPOLICIES PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0680-toscapolicies_toscapolicy.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscapolicies_toscapolicy (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINT PK_TOSCAPOLICIES_TOSCAPOLICY PRIMARY KEY (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0690-toscapolicy.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscapolicy (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, type_name VARCHAR(255) NULL, type_version VARCHAR(255) NULL, CONSTRAINT PK_TOSCAPOLICY PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0700-toscapolicytype.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscapolicytype (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_TOSCAPOLICYTYPE PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-----migration | > upgrade 0710-toscapolicytypes.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscapolicytypes (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_TOSCAPOLICYTYPES PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0720-toscapolicytypes_toscapolicytype.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscapolicytypes_toscapolicytype (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINT PK_TOSCAPOLICYTYPES_TOSCAPOLICYTYPE PRIMARY KEY (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0730-toscaproperty.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscaproperty (DEFAULTVALUE VARCHAR(255) NULL, `DESCRIPTION` VARCHAR(255) NULL, ENTRYSCHEMA LONGBLOB DEFAULT NULL NULL, REQUIRED BIT DEFAULT 0 NULL, STATUS INT DEFAULT NULL NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINT PK_TOSCAPROPERTY PRIMARY KEY (parentLocalName, localName, parentKeyVersion, parentKeyName))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0740-toscarelationshiptype.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscarelationshiptype (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_TOSCARELATIONSHIPTYPE PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0750-toscarelationshiptypes.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscarelationshiptypes (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_TOSCARELATIONSHIPTYPES PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0760-toscarelationshiptypes_toscarelationshiptype.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscarelationshiptypes_toscarelationshiptype (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINT PK_TOSCARELATIONSHIPTYPES_TOSCARELATIONSHIPTYPE PRIMARY KEY (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0770-toscarequirement.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscarequirement (CAPABILITY VARCHAR(255) NULL, `DESCRIPTION` VARCHAR(255) NULL, NODE VARCHAR(255) NULL, RELATIONSHIP VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, type_name VARCHAR(255) NULL, type_version VARCHAR(255) NULL, CONSTRAINT PK_TOSCAREQUIREMENT PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-----migration | > upgrade 0780-toscarequirements.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscarequirements (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_TOSCAREQUIREMENTS PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0790-toscarequirements_toscarequirement.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscarequirements_toscarequirement (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINT PK_TOSCAREQUIREMENTS_TOSCAREQUIREMENT PRIMARY KEY (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0800-toscaservicetemplate.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscaservicetemplate (`DESCRIPTION` VARCHAR(255) NULL, TOSCADEFINITIONSVERSION VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, capabilityTypesVersion VARCHAR(20) NULL, capabilityTypesName VARCHAR(120) NULL, dataTypesName VARCHAR(120) NULL, dataTypesVersion VARCHAR(20) NULL, nodeTypesVersion VARCHAR(20) NULL, nodeTypesName VARCHAR(120) NULL, policyTypesName VARCHAR(120) NULL, policyTypesVersion VARCHAR(20) NULL, relationshipTypesVersion VARCHAR(20) NULL, relationshipTypesName VARCHAR(120) NULL, topologyTemplateLocalName VARCHAR(120) NULL, topologyTemplateParentKeyName VARCHAR(120) NULL, topologyTemplateParentKeyVersion VARCHAR(15) NULL, topologyTemplateParentLocalName VARCHAR(120) NULL, CONSTRAINT PK_TOSCASERVICETEMPLATE PRIMARY KEY (name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0810-toscatopologytemplate.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscatopologytemplate (`description` VARCHAR(255) NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, nodeTemplatessVersion VARCHAR(20) NULL, nodeTemplatesName VARCHAR(120) NULL, policyVersion VARCHAR(20) NULL, policyName VARCHAR(120) NULL, CONSTRAINT PK_TOSCATOPOLOGYTEMPLATE PRIMARY KEY (parentLocalName, localName, parentKeyVersion, parentKeyName))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0820-toscatrigger.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS toscatrigger (ACTION VARCHAR(255) NULL, toscaCondition LONGBLOB DEFAULT NULL NULL, toscaConstraint LONGBLOB DEFAULT NULL NULL, `DESCRIPTION` VARCHAR(255) NULL, EVALUATIONS INT DEFAULT NULL NULL, EVENTTYPE VARCHAR(255) NULL, METHOD VARCHAR(255) NULL, `PERIOD` LONGBLOB DEFAULT NULL NULL, SCHEDULE LONGBLOB DEFAULT NULL NULL, TARGETFILTER LONGBLOB DEFAULT NULL NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, CONSTRAINT PK_TOSCATRIGGER PRIMARY KEY (parentLocalName, localName, parentKeyVersion, parentKeyName))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0830-FK_ToscaNodeTemplate_capabilitiesName.sql
drools-db-migration | --------------
drools-db-migration | ALTER TABLE toscanodetemplate ADD CONSTRAINT FK_ToscaNodeTemplate_capabilitiesName FOREIGN KEY (capabilitiesName, capabilitiesVersion) REFERENCES toscacapabilityassignments (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0840-FK_ToscaNodeTemplate_requirementsName.sql
drools-db-migration | --------------
drools-db-migration | ALTER TABLE toscanodetemplate ADD CONSTRAINT FK_ToscaNodeTemplate_requirementsName FOREIGN KEY (requirementsName, requirementsVersion) REFERENCES toscarequirements (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0850-FK_ToscaNodeType_requirementsName.sql
drools-db-migration | --------------
drools-db-migration | ALTER TABLE toscanodetype ADD CONSTRAINT FK_ToscaNodeType_requirementsName FOREIGN KEY (requirementsName, requirementsVersion) REFERENCES toscarequirements (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0860-FK_ToscaServiceTemplate_capabilityTypesName.sql
drools-db-migration | --------------
drools-db-migration | ALTER TABLE toscaservicetemplate ADD CONSTRAINT FK_ToscaServiceTemplate_capabilityTypesName FOREIGN KEY (capabilityTypesName, capabilityTypesVersion) REFERENCES toscacapabilitytypes (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0870-FK_ToscaServiceTemplate_dataTypesName.sql
drools-db-migration | --------------
drools-db-migration | ALTER TABLE toscaservicetemplate ADD CONSTRAINT FK_ToscaServiceTemplate_dataTypesName FOREIGN KEY (dataTypesName, dataTypesVersion) REFERENCES toscadatatypes (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0880-FK_ToscaServiceTemplate_nodeTypesName.sql
drools-db-migration | --------------
drools-db-migration | ALTER TABLE toscaservicetemplate ADD CONSTRAINT FK_ToscaServiceTemplate_nodeTypesName FOREIGN KEY (nodeTypesName, nodeTypesVersion) REFERENCES toscanodetypes (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0890-FK_ToscaServiceTemplate_policyTypesName.sql
drools-db-migration | --------------
drools-db-migration | ALTER TABLE toscaservicetemplate ADD CONSTRAINT FK_ToscaServiceTemplate_policyTypesName FOREIGN KEY (policyTypesName, policyTypesVersion) REFERENCES toscapolicytypes (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0900-FK_ToscaServiceTemplate_relationshipTypesName.sql
drools-db-migration | --------------
drools-db-migration | ALTER TABLE toscaservicetemplate ADD CONSTRAINT FK_ToscaServiceTemplate_relationshipTypesName FOREIGN KEY (relationshipTypesName, relationshipTypesVersion) REFERENCES toscarelationshiptypes (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0910-FK_ToscaTopologyTemplate_nodeTemplatesName.sql
drools-db-migration | --------------
drools-db-migration | ALTER TABLE toscatopologytemplate ADD CONSTRAINT FK_ToscaTopologyTemplate_nodeTemplatesName FOREIGN KEY (nodeTemplatesName, nodeTemplatessVersion) REFERENCES toscanodetemplates (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0920-FK_ToscaTopologyTemplate_policyName.sql
drools-db-migration | --------------
drools-db-migration | ALTER TABLE toscatopologytemplate ADD CONSTRAINT FK_ToscaTopologyTemplate_policyName FOREIGN KEY (policyName, policyVersion) REFERENCES toscapolicies (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0930-TscaServiceTemplatetopologyTemplateParentLocalName.sql
drools-db-migration | --------------
drools-db-migration | ALTER TABLE toscaservicetemplate ADD CONSTRAINT TscaServiceTemplatetopologyTemplateParentLocalName FOREIGN KEY (topologyTemplateParentLocalName, topologyTemplateLocalName, topologyTemplateParentKeyVersion, topologyTemplateParentKeyName) REFERENCES toscatopologytemplate (parentLocalName, localName, parentKeyVersion, parentKeyName) ON UPDATE RESTRICT ON DELETE RESTRICT
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0940-FK_ToscaNodeTemplate_capabilitiesName.sql
drools-db-migration | --------------
drools-db-migration | CREATE INDEX FK_ToscaNodeTemplate_capabilitiesName ON toscanodetemplate(capabilitiesName, capabilitiesVersion)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0950-FK_ToscaNodeTemplate_requirementsName.sql
drools-db-migration | --------------
drools-db-migration | CREATE INDEX FK_ToscaNodeTemplate_requirementsName ON toscanodetemplate(requirementsName, requirementsVersion)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0960-FK_ToscaNodeType_requirementsName.sql
drools-db-migration | ---------
drools-db-----
drools-db-migration | CREATE INDEX FK_ToscaNodeType_requirementsName ON toscanodetype(requirementsName, requirementsVersion)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0970-FK_ToscaServiceTemplate_capabilityTypesName.sql
drools-db-migration | --------------
drools-db-migration | CREATE INDEX FK_ToscaServiceTemplate_capabilityTypesName ON toscaservicetemplate(capabilityTypesName, capabilityTypesVersion)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0980-FK_ToscaServiceTemplate_dataTypesName.sql
drools-db-migration | --------------
drools-db-migration | CREATE INDEX FK_ToscaServiceTemplate_dataTypesName ON toscaservicetemplate(dataTypesName, dataTypesVersion)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0990-FK_ToscaServiceTemplate_nodeTypesName.sql
drools-db-migration | --------------
drools-db-migration | CREATE INDEX FK_ToscaServiceTemplate_nodeTypesName ON toscaservicetemplate(nodeTypesName, nodeTypesVersion)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 1000-FK_ToscaServiceTemplate_policyTypesName.sql
drools-db-migration | --------------
drools-db-migration | CREATE INDEX FK_ToscaServiceTemplate_policyTypesName ON toscaservicetemplate(policyTypesName, policyTypesVersion)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 1010-FK_ToscaServiceTemplate_relationshipTypesName.sql
drools-db-migration | --------------
drools-db-migration | CREATE INDEX FK_ToscaServiceTemplate_relationshipTypesName ON toscaservicetemplate(relationshipTypesName, relationshipTypesVersion)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration | --------------
drools-db-migration | CREATE > upgrade 1020-FK_ToscaTopologyTemplate_nodeTemplatesName.sql
drools-db-migration | --------------
drools-db-migration | CREATE INDEX FK_ToscaTopologyTemplate_nodeTemplatesName ON toscatopologytemplate(nodeTemplatesName, nodeTemplatessVersion)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 1030-FK_ToscaTopologyTemplate_policyName.sql
drools-db-migration | --------------
drools-db-migration | CREATE INDEX FK_ToscaTopologyTemplate_policyName ON toscatopologytemplate(policyName, policyVersion)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 1040-IDX_TSIDX1.sql
drools-db-migration | --------------
drools-db-migration | CREATE INDEX IDX_TSIDX1 ON pdpstatistics(TIMESTAMP, name, version)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 1050-PdpPolicyStatus_PdpGroup.sql
drools-db-migration | --------------
drools-db-migration | CREATE INDEX PdpPolicyStatus_PdpGroup ON pdppolicystatus(PDPGROUP)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 1060-TscaServiceTemplatetopologyTemplateParentLocalName.sql
drools-db-migration | --------------
drools-db-migration | CREATE INDEX TscaServiceTemplatetopologyTemplateParentLocalName ON toscaservicetemplate(topologyTemplateParentLocalName, topologyTemplateLocalName, topologyTemplateParentKeyVersion, topologyTemplateParentKeyName)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 020100-istanbuljpapolicyaudit.upgrade.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS jpapolicyaudit (ACTION INT DEFAULT NULL NULL, PDPGROUP VARCHAR(255) NULL, PDPTYPE VARCHAR(255) NULL, TIMESTAMP datetime DEFAULT NULL NULL, USER VARCHAR(255) NULL, ID BIGINT NOT NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_JPAPOLICYAUDIT PRIMARY KEY (ID, name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-----migration | > upgrade 0110-sequence.sql
drools-db-migration | --------------
drools-db-migration | CREATE TABLE IF NOT EXISTS sequence (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(38) DEFAULT NULL NULL, CONSTRAINT PK_SEQUENCE PRIMARY KEY (SEQ_NAME))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration |
drools-db-migration | > upgrade 0120-JpaPolicyAuditIndex_timestamp.sql
drools-db-migration | --------------
drools-db-migration | CREATE INDEX JpaPolicyAuditIndex_timestamp ON jpapolicyaudit(TIMESTAMP)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration | policyadmin: OK: upgrade (020900)
drools-db-migration | name version
drools-db-migration | policyadmin 020900
drools-db-migration | ID script operation from_version to_version tag success atTime
drools-db-migration | 01-honolulu.upgrade1 0100-jpapdpgroup_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-06 1119 15:1203:5020
drools-db-migration | 02-istanbul.upgrade.sql upgrade 2 0110-jpapdpstatistics_enginestats.sql upgrade 0 0800 1907211503200800u 1 2021-07-06 1119 15:1203:5020
drools-db-migration | policyadmin: OK @ 023 0120-jpapdpsubgroup_policies.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | Preparing 01-honolulu.downgrade.sql4 0130-jpapdpsubgroup_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | Preparing 02-istanbul.downgrade.sql5 0140-jpapdpsubgroup_supportedpolicytypes.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | Done6 0150-jpatoscacapabilityassignment_attributes.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:20
drools-db-migration | downgrade: 2 -> 0
drools-db-migration |7 0160-jpatoscacapabilityassignment_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | > downgrade 02-istanbul.downgrade.sql8 0170-jpatoscacapabilityassignment_occurrences.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:20
drools-db-migration | 9 0180-jpatoscacapabilityassignment_properties.sql upgrade 0 0800 1907211503200800u 2021-------------07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `sequence`10 0190-jpatoscacapabilitytype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 11 0200-jpatoscacapabilitytype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | 12 0210-jpatoscadatatype_constraints.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 13 0220-jpatoscadatatype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `jpapolicyaudit`14 0230-jpatoscadatatype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 15 0240-jpatoscanodetemplate_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration |
drools-db-migration |16 0250-jpatoscanodetemplate_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | > downgrade 01-honolulu.downgrade.sql17 0260-jpatoscanodetype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 18 0270-jpatoscanodetype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | ALTER TABLE toscaservicetemplate DROP CONSTRAINT TscaServiceTemplatetopologyTemplateParentLocalName19 0280-jpatoscapolicy_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 20 0290-jpatoscapolicy_properties.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration |
drools-db-migration | --------------21 0300-jpatoscapolicy_targets.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | ALTER TABLE toscatopologytemplate DROP CONSTRAINT FK_ToscaTopologyTemplate_policyName22 0310-jpatoscapolicytype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 23 0320-jpatoscapolicytype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | 24 0330-jpatoscapolicytype_targets.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 25 0340-jpatoscapolicytype_triggers.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | ALTER TABLE toscatopologytemplate DROP CONSTRAINT FK_ToscaTopologyTemplate_nodeTemplatesName26 0350-jpatoscaproperty_constraints.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 27 0360-jpatoscaproperty_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | 28 0370-jpatoscarelationshiptype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 29 0380-jpatoscarelationshiptype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | ALTER TABLE toscaservicetemplate DROP CONSTRAINT FK_ToscaServiceTemplate_relationshipTypesName30 0390-jpatoscarequirement_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | --------------31 0400-jpatoscarequirement_occurrences.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 32 0410-jpatoscarequirement_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 33 0420-jpatoscaservicetemplate_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | ALTER TABLE toscaservicetemplate DROP CONSTRAINT FK_ToscaServiceTemplate_policyTypesName34 0430-jpatoscatopologytemplate_inputs.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 35 0440-pdpgroup_pdpsubgroup.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration |
drools-db-migration | --------------36 0450-pdpgroup.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 37 0460-pdppolicystatus.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 38 0470-pdp.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | ALTER TABLE toscaservicetemplate DROP CONSTRAINT FK_ToscaServiceTemplate_nodeTypesName39 0480-pdpstatistics.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 40 0490-pdpsubgroup_pdp.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | 41 0500-pdpsubgroup.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | --------------42 0510-toscacapabilityassignment.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 43 0520-toscacapabilityassignments.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | ALTER TABLE toscaservicetemplate DROP CONSTRAINT FK_ToscaServiceTemplate_dataTypesName44 0530-toscacapabilityassignments_toscacapabilityassignment.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 45 0540-toscacapabilitytype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 46 0550-toscacapabilitytypes.sql upgrade 0 0800 1907211503200800u 1 2021--------07-19 15:03:21
drools-db-migration | 47 0560-toscacapabilitytypes_toscacapabilitytype.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:21
drools-db-migration | --------------48 0570-toscadatatype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 49 0580-toscadatatypes.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | ALTER TABLE toscaservicetemplate DROP CONSTRAINT FK_ToscaServiceTemplate_capabilityTypesName50 0590-toscadatatypes_toscadatatype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 51 0600-toscanodetemplate.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 52 0610-toscanodetemplates.sql upgrade 0 0800 1907211503200800u 1 2021--------07-19 15:03:21
drools-db-migration | 53 0620-toscanodetemplates_toscanodetemplate.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | --------------54 0630-toscanodetype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 55 0640-toscanodetypes.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | ALTER TABLE toscanodetype DROP CONSTRAINT FK_ToscaNodeType_requirementsName56 0650-toscanodetypes_toscanodetype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 57 0660-toscaparameter.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 58 0670-toscapolicies.sql upgrade 0 0800 1907211503200800u 1 2021--------07-19 15:03:22
drools-db-migration | 59 0680-toscapolicies_toscapolicy.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | --------------60 0690-toscapolicy.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 61 0700-toscapolicytype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | ALTER TABLE toscanodetemplate DROP CONSTRAINT FK_ToscaNodeTemplate_requirementsName62 0710-toscapolicytypes.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 63 0720-toscapolicytypes_toscapolicytype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 64 0730-toscaproperty.sql upgrade 0 0800 1907211503200800u 1 2021--------07-19 15:03:22
drools-db-migration | 65 0740-toscarelationshiptype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | --------------66 0750-toscarelationshiptypes.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | ALTER TABLE toscanodetemplate DROP CONSTRAINT FK_ToscaNodeTemplate_capabilitiesName67 0760-toscarelationshiptypes_toscarelationshiptype.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:22
drools-db-migration | 68 0770-toscarequirement.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 69 0780-toscarequirements.sql upgrade 0 0800 1907211503200800u 1 2021--------07-19 15:03:22
drools-db-migration | 70 0790-toscarequirements_toscarequirement.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 71 0800-toscaservicetemplate.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `toscatrigger`72 0810-toscatopologytemplate.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 73 0820-toscatrigger.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | 74 0830-FK_ToscaNodeTemplate_capabilitiesName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 75 0840-FK_ToscaNodeTemplate_requirementsName.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `toscatopologytemplate`76 0850-FK_ToscaNodeType_requirementsName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | --------------77 0860-FK_ToscaServiceTemplate_capabilityTypesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:22
drools-db-migration | 78 0870-FK_ToscaServiceTemplate_dataTypesName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 79 0880-FK_ToscaServiceTemplate_nodeTypesName.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `toscaservicetemplate`80 0890-FK_ToscaServiceTemplate_policyTypesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:22
drools-db-migration | 81 0900-FK_ToscaServiceTemplate_relationshipTypesName.sql upgrade 0 0800 1907211503200800u 2021-------------07-19 15:03:23
drools-db-migration |
drools-db-migration | --------------82 0910-FK_ToscaTopologyTemplate_nodeTemplatesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:23
drools-db-migration | DROP TABLE IF EXISTS `toscarequirements_toscarequirement`83 0920-FK_ToscaTopologyTemplate_policyName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 84 0930-TscaServiceTemplatetopologyTemplateParentLocalName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 85 0940-FK_ToscaNodeTemplate_capabilitiesName.sql upgrade 0 0800 1907211503200800u 1 2021--------07-19 15:03:23
drools-db-migration | 86 0950-FK_ToscaNodeTemplate_requirementsName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | --------------87 0960-FK_ToscaNodeType_requirementsName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | DROP TABLE IF EXISTS `toscarequirements`88 0970-FK_ToscaServiceTemplate_capabilityTypesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:23
drools-db-migration | 89 0980-FK_ToscaServiceTemplate_dataTypesName.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:23
drools-db-migration | 90 0990-FK_ToscaServiceTemplate_nodeTypesName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 91 1000-FK_ToscaServiceTemplate_policyTypesName.sql upgrade 0 0800 1907211503200800u 2021-------------07-19 15:03:23
drools-db-migration | DROP TABLE IF EXISTS `toscarequirement`92 1010-FK_ToscaServiceTemplate_relationshipTypesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:23
drools-db-migration | 93 1020-FK_ToscaTopologyTemplate_nodeTemplatesName.sql upgrade 0 0800 1907211503200800u 2021-------------07-19 15:03:23
drools-db-migration | 94 1030-FK_ToscaTopologyTemplate_policyName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 95 1040-IDX_TSIDX1.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:23
drools-db-migration | DROP TABLE IF EXISTS `toscarelationshiptypes_toscarelationshiptype`96 1050-PdpPolicyStatus_PdpGroup.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | --------------97 1060-TscaServiceTemplatetopologyTemplateParentLocalName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 98 0100-jpapolicyaudit.sql upgrade 0800 0900 1907211503200900u 1 2021-07-19 15:03:23
drools-db-migration | 99 0110-sequence.sql upgrade 0800 0900 1907211503200900u 1 2021-07-19 15:03:23
drools-db-migration | 100 0120-JpaPolicyAuditIndex_timestamp.sql upgrade 0800 0900 1907211503200900u 1 2021-------------07-19 15:03:23
drools-db-migration | DROP TABLE IF EXISTS `toscarelationshiptypes`policyadmin: OK @ 0900
drools-db-migration | --------------223 blocks
drools-db-migration | Preparing downgrade release version: 0800
drools-db-migration | --------------Preparing downgrade release version: 0900
drools-db-migration | DROP TABLE IF EXISTS `toscarelationshiptype`Done
drools-db-migration | downgrade: 0900 -> 0800
drools-------------db-migration |
drools-db-migration | > downgrade 0120-JpaPolicyAuditIndex_timestamp.sql
drools-db-migration | --------------
drools-db-migration | DROP TABLE IF EXISTS `toscaproperty`SET FOREIGN_KEY_CHECKS = 0
drools-db-migration | --------------
drools-db-migration |
drools-db-migration | --------------
drools-db-migration | DROP TABLE IF EXISTS `toscapolicytypes_toscapolicytype`INDEX JpaPolicyAuditIndex_timestamp ON jpapolicyaudit
drools-db-migration | --------------
drools-db-migration |
drools-db-migration | --------------
drools-db-migration | DROP TABLE IF EXISTS `toscapolicytypes`SET FOREIGN_KEY_CHECKS = 1
drools-db-migration | --------------
drools-db-migration |
drools-db-migration | --------------
drools-db-migration | DROP TABLE IF EXISTS `toscapolicytype`> downgrade 0110-sequence.sql
drools-db-migration | --------------
drools-db-migration | DROP TABLE IF EXISTS `sequence`
drools-db-migration | --------------
drools-db-migration | DROP TABLE IF EXISTS `toscapolicy`
drools-db-migration | --------------
drools-db-migration | > downgrade 0100-jpapolicyaudit.sql
drools-db-migration | --------------
drools-db-migration | DROP TABLE IF EXISTS `toscapolicies_toscapolicy``jpapolicyaudit`
drools-db-migration | --------------
drools-db-migration |
drools-db-migration | --------------policyadmin: OK: downgrade (0800)
drools-db-migration | DROP TABLE IF EXISTS `toscapolicies`name version
drools-db-migration | --------------policyadmin 0800
drools-db-migration | ID script operation from_version to_version tag success atTime
drools-db-migration | 1 0100-jpapdpgroup_properties.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `toscaparameter`2 0110-jpapdpstatistics_enginestats.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 3 0120-jpapdpsubgroup_policies.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | 4 0130-jpapdpsubgroup_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 5 0140-jpapdpsubgroup_supportedpolicytypes.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `toscanodetypes_toscanodetype`6 0150-jpatoscacapabilityassignment_attributes.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:20
drools-db-migration | 7 0160-jpatoscacapabilityassignment_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | 8 0170-jpatoscacapabilityassignment_occurrences.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:20
drools-db-migration | 9 0180-jpatoscacapabilityassignment_properties.sql upgrade 0 0800 1907211503200800u 2021-------------07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `toscanodetypes`
drools-db-migration | --------------10 0190-jpatoscacapabilitytype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 11 0200-jpatoscacapabilitytype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 12 0210-jpatoscadatatype_constraints.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `toscanodetype`13 0220-jpatoscadatatype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 14 0230-jpatoscadatatype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration |
drools-db-migration | --------------15 0240-jpatoscanodetemplate_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `toscanodetemplates_toscanodetemplate`16 0250-jpatoscanodetemplate_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 17 0260-jpatoscanodetype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | 18 0270-jpatoscanodetype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 19 0280-jpatoscapolicy_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `toscanodetemplates`20 0290-jpatoscapolicy_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 21 0300-jpatoscapolicy_targets.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | 22 0310-jpatoscapolicytype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 23 0320-jpatoscapolicytype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `toscanodetemplate`24 0330-jpatoscapolicytype_targets.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | --------------25 0340-jpatoscapolicytype_triggers.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 26 0350-jpatoscaproperty_constraints.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 27 0360-jpatoscaproperty_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `toscadatatypes_toscadatatype`28 0370-jpatoscarelationshiptype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 29 0380-jpatoscarelationshiptype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration |
drools-db-migration | --------------30 0390-jpatoscarequirement_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `toscadatatypes`31 0400-jpatoscarequirement_occurrences.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 32 0410-jpatoscarequirement_properties.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | 33 0420-jpatoscaservicetemplate_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 34 0430-jpatoscatopologytemplate_inputs.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `toscadatatype`
drools-35 0440-pdpgroup_pdpsubgroup.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 36 0450-pdpgroup.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 37 0460-pdppolicystatus.sql upgrade 0 0800 1907211503200800u 1 2021--------07-19 15:03:21
drools-db-migration | 38 0470-pdp.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 39 0480-pdpstatistics.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `toscacapabilitytypes_toscacapabilitytype`40 0490-pdpsubgroup_pdp.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | --------------41 0500-pdpsubgroup.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 42 0510-toscacapabilityassignment.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 43 0520-toscacapabilityassignments.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `toscacapabilitytypes`44 0530-toscacapabilityassignments_toscacapabilityassignment.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 45 0540-toscacapabilitytype.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration |
drools-db-migration | --------------46 0550-toscacapabilitytypes.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 47 0560-toscacapabilitytypes_toscacapabilitytype.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `toscacapabilitytype`48 0570-toscadatatype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 49 0580-toscadatatypes.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | 50 0590-toscadatatypes_toscadatatype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 51 0600-toscanodetemplate.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `toscacapabilityassignments_toscacapabilityassignment`52 0610-toscanodetemplates.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 53 0620-toscanodetemplates_toscanodetemplate.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 54 0630-toscanodetype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 55 0640-toscanodetypes.sql upgrade 0 0800 1907211503200800u 1 2021---07-19 15:03:22
drools-db-migration | 56 0650-toscanodetypes_toscanodetype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 57 0660-toscaparameter.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `toscacapabilityassignments`
drools-db-migration | --------------58 0670-toscapolicies.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 59 0680-toscapolicies_toscapolicy.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 60 0690-toscapolicy.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `toscacapabilityassignment`61 0700-toscapolicytype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 62 0710-toscapolicytypes.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration |
drools-db-migration | --------------63 0720-toscapolicytypes_toscapolicytype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 64 0730-toscaproperty.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 65 0740-toscarelationshiptype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `pdpsubgroup_pdp`66 0750-toscarelationshiptypes.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 67 0760-toscarelationshiptypes_toscarelationshiptype.sql upgrade 0 0800 1907211503200800u 2021-------------07-19 15:03:22
drools-db-migration | 68 0770-toscarequirement.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | --------------69 0780-toscarequirements.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `pdpsubgroup`70 0790-toscarequirements_toscarequirement.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 71 0800-toscaservicetemplate.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | 72 0810-toscatopologytemplate.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 73 0820-toscatrigger.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `pdpstatistics`
drools-db-migration | --------------74 0830-FK_ToscaNodeTemplate_capabilitiesName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 75 0840-FK_ToscaNodeTemplate_requirementsName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 76 0850-FK_ToscaNodeType_requirementsName.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `pdppolicystatus`77 0860-FK_ToscaServiceTemplate_capabilityTypesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:22
drools-db-migration | 78 0870-FK_ToscaServiceTemplate_dataTypesName.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | 79 0880-FK_ToscaServiceTemplate_nodeTypesName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 80 0890-FK_ToscaServiceTemplate_policyTypesName.sql upgrade 0 0800 1907211503200800u 2021-------------07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `pdpgroup_pdpsubgroup`81 0900-FK_ToscaServiceTemplate_relationshipTypesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:23
drools-db-migration | 82 0910-FK_ToscaTopologyTemplate_nodeTemplatesName.sql upgrade 0 0800 1907211503200800u 2021-------------07-19 15:03:23
drools-db-migration | 83 0920-FK_ToscaTopologyTemplate_policyName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | --------------84 0930-TscaServiceTemplatetopologyTemplateParentLocalName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | DROP TABLE IF EXISTS `pdpgroup`85 0940-FK_ToscaNodeTemplate_capabilitiesName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 86 0950-FK_ToscaNodeTemplate_requirementsName.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:23
drools-db-migration | 87 0960-FK_ToscaNodeType_requirementsName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 88 0970-FK_ToscaServiceTemplate_capabilityTypesName.sql upgrade 0 0800 1907211503200800u 2021-------------07-19 15:03:23
drools-db-migration | DROP TABLE IF EXISTS `pdp`89 0980-FK_ToscaServiceTemplate_dataTypesName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 90 0990-FK_ToscaServiceTemplate_nodeTypesName.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:23
drools-db-migration | 91 1000-FK_ToscaServiceTemplate_policyTypesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:23
drools-db-migration | 92 1010-FK_ToscaServiceTemplate_relationshipTypesName.sql upgrade 0 0800 1907211503200800u 2021-------------07-19 15:03:23
drools-db-migration | DROP TABLE IF EXISTS `jpatoscatopologytemplate_inputs`93 1020-FK_ToscaTopologyTemplate_nodeTemplatesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:23
drools-db-migration | --------------94 1030-FK_ToscaTopologyTemplate_policyName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration |
drools-db-migration | --------------95 1040-IDX_TSIDX1.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | DROP TABLE IF EXISTS `jpatoscaservicetemplate_metadata`96 1050-PdpPolicyStatus_PdpGroup.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 97 1060-TscaServiceTemplatetopologyTemplateParentLocalName.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:23
drools-db-migration | 98 0100-jpapolicyaudit.sql upgrade 0800 0900 1907211503200900u 1 2021-07-19 15:03:23
drools-db-migration | --------------99 0110-sequence.sql upgrade 0800 0900 1907211503200900u 1 2021-07-19 15:03:23
drools-db-migration | 100 0120-JpaPolicyAuditIndex_timestamp.sql upgrade 0800 0900 1907211503200900u 1 2021-07-19 15:03:23
drools-db-migration | DROP TABLE IF EXISTS `jpatoscarequirement_properties`101 0120-JpaPolicyAuditIndex_timestamp.sql downgrade 0900 0800 1907211503280900d 1 2021-07-19 15:03:28
drools-db-migration | 102 0110-sequence.sql downgrade 0900 0800 1907211503280900d 1 2021-07-19 15:03:29
drools-db-migration | 103 0100-jpapolicyaudit.sql downgrade 0900 0800 1907211503280900d 1 2021-07-19 15:03:29
drools-db-----migration | policyadmin: downgrade available: 0800 -> 0
drools-db-migration | 482 blocks
drools-db-migration | --------------Preparing upgrade release version: 0800
drools-db-migration | DROP TABLE IF EXISTS `jpatoscarequirement_occurrences`Preparing upgrade release version: 0900
drools-db-migration | Done
drools-db-migration | upgrade: 0800 -> 0900
drools-----------db-migration |
drools-db-migration | > upgrade 0100-jpapolicyaudit.sql
drools-db-migration | --------------
drools-db-migration | DROP CREATE TABLE IF EXISTS `jpatoscarequirement_metadata`NOT EXISTS jpapolicyaudit (ACTION INT DEFAULT NULL NULL, PDPGROUP VARCHAR(255) NULL, PDPTYPE VARCHAR(255) NULL, TIMESTAMP datetime DEFAULT NULL NULL, USER VARCHAR(255) NULL, ID BIGINT NOT NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, CONSTRAINT PK_JPAPOLICYAUDIT PRIMARY KEY (ID, name, version))
drools-db-migration | --------------
drools-db-migration |
drools-db-migration | --------------
drools-db-migration | DROP TABLE IF EXISTS `jpatoscarelationshiptype_properties`> upgrade 0110-sequence.sql
drools-db-migration | --------------
drools-db-migration |
CREATE TABLE IF NOT EXISTS sequence (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(38) DEFAULT NULL NULL, CONSTRAINT PK_SEQUENCE PRIMARY KEY (SEQ_NAME))
drools-db-migration | --------------
drools-db-migration | DROP TABLE IF EXISTS `jpatoscarelationshiptype_metadata`
drools-db-migration | --------------
drools-db-migration | > upgrade 0120-JpaPolicyAuditIndex_timestamp.sql
drools-db-migration | --------------
drools-db-migration | DROP TABLE IF EXISTS `jpatoscaproperty_metadata`CREATE INDEX JpaPolicyAuditIndex_timestamp ON jpapolicyaudit(TIMESTAMP)
drools-db-migration | --------------
drools-db-migration |
drools-db-migration | --------------policyadmin: OK: upgrade (0900)
drools-db-migration | DROP TABLE IF EXISTS `jpatoscaproperty_constraints`name version
drools-db-migration | --------------policyadmin 0900
drools-db-migration | ID script operation from_version to_version tag success atTime
drools-db-migration | --------------1 0100-jpapdpgroup_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `jpatoscapolicytype_triggers`2 0110-jpapdpstatistics_enginestats.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 3 0120-jpapdpsubgroup_policies.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | 4 0130-jpapdpsubgroup_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 5 0140-jpapdpsubgroup_supportedpolicytypes.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `jpatoscapolicytype_targets`6 0150-jpatoscacapabilityassignment_attributes.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:20
drools-db-migration | 7 0160-jpatoscacapabilityassignment_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 8 0170-jpatoscacapabilityassignment_occurrences.sql upgrade 0 0800 1907211503200800u 2021--------07-19 15:03:20
drools-db-migration | 9 0180-jpatoscacapabilityassignment_properties.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:20
drools-db-migration | 10 0190-jpatoscacapabilitytype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `jpatoscapolicytype_properties`11 0200-jpatoscacapabilitytype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 12 0210-jpatoscadatatype_constraints.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | 13 0220-jpatoscadatatype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 14 0230-jpatoscadatatype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `jpatoscapolicytype_metadata`15 0240-jpatoscanodetemplate_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 16 0250-jpatoscanodetemplate_properties.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration |
drools-db-migration | --------------17 0260-jpatoscanodetype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `jpatoscapolicy_targets`18 0270-jpatoscanodetype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 19 0280-jpatoscapolicy_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | 20 0290-jpatoscapolicy_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 21 0300-jpatoscapolicy_targets.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:20
drools-db-migration | DROP TABLE IF EXISTS `jpatoscapolicy_properties`22 0310-jpatoscapolicytype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 23 0320-jpatoscapolicytype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:20
drools-db-migration | 24 0330-jpatoscapolicytype_targets.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 25 0340-jpatoscapolicytype_triggers.sql upgrade 0 0800 1907211503200800u 1 2021---07-19 15:03:21
drools-db-migration | 26 0350-jpatoscaproperty_constraints.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 27 0360-jpatoscaproperty_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `jpatoscapolicy_metadata`28 0370-jpatoscarelationshiptype_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 29 0380-jpatoscarelationshiptype_properties.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | 30 0390-jpatoscarequirement_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 31 0400-jpatoscarequirement_occurrences.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `jpatoscanodetype_properties`32 0410-jpatoscarequirement_properties.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | --------------33 0420-jpatoscaservicetemplate_metadata.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration |
drools-db-migration | --------------34 0430-jpatoscatopologytemplate_inputs.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `jpatoscanodetype_metadata`35 0440-pdpgroup_pdpsubgroup.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 36 0450-pdpgroup.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | 37 0460-pdppolicystatus.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | --------------38 0470-pdp.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 39 0480-pdpstatistics.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `jpatoscanodetemplate_properties`40 0490-pdpsubgroup_pdp.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 41 0500-pdpsubgroup.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | 42 0510-toscacapabilityassignment.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 43 0520-toscacapabilityassignments.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `jpatoscanodetemplate_metadata`44 0530-toscacapabilityassignments_toscacapabilityassignment.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 45 0540-toscacapabilitytype.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration |
drools-db-migration | --------------46 0550-toscacapabilitytypes.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `jpatoscadatatype_properties`47 0560-toscacapabilitytypes_toscacapabilitytype.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:21
drools-db-migration | 48 0570-toscadatatype.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:21
drools-db-migration |
drools-db-migration | --------------49 0580-toscadatatypes.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | DROP TABLE IF EXISTS `jpatoscadatatype_metadata`50 0590-toscadatatypes_toscadatatype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 51 0600-toscanodetemplate.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 52 0610-toscanodetemplates.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 53 0620-toscanodetemplates_toscanodetemplate.sql upgrade 0 0800 1907211503200800u 1 2021---07-19 15:03:21
drools-db-migration | 54 0630-toscanodetype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:21
drools-db-migration | 55 0640-toscanodetypes.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `jpatoscadatatype_constraints`56 0650-toscanodetypes_toscanodetype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 57 0660-toscaparameter.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 58 0670-toscapolicies.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 59 0680-toscapolicies_toscapolicy.sql upgrade 0 0800 1907211503200800u 1 2021---07-19 15:03:22
drools-db-migration | 60 0690-toscapolicy.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | --------------61 0700-toscapolicytype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 62 0710-toscapolicytypes.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `jpatoscacapabilitytype_properties`63 0720-toscapolicytypes_toscapolicytype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 64 0730-toscaproperty.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | 65 0740-toscarelationshiptype.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 66 0750-toscarelationshiptypes.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `jpatoscacapabilitytype_metadata`67 0760-toscarelationshiptypes_toscarelationshiptype.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:22
drools-db-migration | 68 0770-toscarequirement.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration |
drools-db-migration | --------------69 0780-toscarequirements.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `jpatoscacapabilityassignment_properties`70 0790-toscarequirements_toscarequirement.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 71 0800-toscaservicetemplate.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | 72 0810-toscatopologytemplate.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 73 0820-toscatrigger.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `jpatoscacapabilityassignment_occurrences`74 0830-FK_ToscaNodeTemplate_capabilitiesName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 75 0840-FK_ToscaNodeTemplate_requirementsName.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | 76 0850-FK_ToscaNodeType_requirementsName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | --------------77 0860-FK_ToscaServiceTemplate_capabilityTypesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:22
drools-db-migration | DROP TABLE IF EXISTS `jpatoscacapabilityassignment_metadata`78 0870-FK_ToscaServiceTemplate_dataTypesName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:22
drools-db-migration | 79 0880-FK_ToscaServiceTemplate_nodeTypesName.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:22
drools-db-migration | 80 0890-FK_ToscaServiceTemplate_policyTypesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:22
drools-db-migration | 81 0900-FK_ToscaServiceTemplate_relationshipTypesName.sql upgrade 0 0800 1907211503200800u 2021-------------07-19 15:03:23
drools-db-migration | DROP TABLE IF EXISTS `jpatoscacapabilityassignment_attributes`82 0910-FK_ToscaTopologyTemplate_nodeTemplatesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:23
drools-db-migration | 83 0920-FK_ToscaTopologyTemplate_policyName.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:23
drools-db-migration | 84 0930-TscaServiceTemplatetopologyTemplateParentLocalName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 85 0940-FK_ToscaNodeTemplate_capabilitiesName.sql upgrade 0 0800 1907211503200800u 1 2021-------------07-19 15:03:23
drools-db-migration | DROP TABLE IF EXISTS `jpapdpsubgroup_supportedpolicytypes`86 0950-FK_ToscaNodeTemplate_requirementsName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | --------------87 0960-FK_ToscaNodeType_requirementsName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 88 0970-FK_ToscaServiceTemplate_capabilityTypesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:23
drools-db-migration | 89 0980-FK_ToscaServiceTemplate_dataTypesName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 90 0990-FK_ToscaServiceTemplate_nodeTypesName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 91 1000-FK_ToscaServiceTemplate_policyTypesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:23
drools-db-migration | 92 1010-FK_ToscaServiceTemplate_relationshipTypesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:23
drools-db-migration | 93 1020-FK_ToscaTopologyTemplate_nodeTemplatesName.sql upgrade 0 0800 1907211503200800u 2021-07-19 15:03:23
drools-db-migration | 94 1030-FK_ToscaTopologyTemplate_policyName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 95 1040-IDX_TSIDX1.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 96 1050-PdpPolicyStatus_PdpGroup.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 97 1060-TscaServiceTemplatetopologyTemplateParentLocalName.sql upgrade 0 0800 1907211503200800u 1 2021-07-19 15:03:23
drools-db-migration | 98 0100-jpapolicyaudit.sql upgrade 0800 0900 1907211503200900u 1 2021-07-19 15:03:23
drools-db-migration | 99 0110-sequence.sql upgrade 0800 0900 1907211503200900u 1 2021-07-19 15:03:23
drools-db-migration | 100 0120-JpaPolicyAuditIndex_timestamp.sql upgrade 0800 0900 1907211503200900u 1 2021-07-19 15:03:23
drools-db-migration | 101 0120-JpaPolicyAuditIndex_timestamp.sql downgrade 0900 0800 1907211503280900d 1 2021-07-19 15:03:28
drools-db-migration | 102 0110-sequence.sql downgrade 0900 0800 1907211503280900d 1 2021-07-19 15:03:29
drools-db-migration | 103 0100-jpapolicyaudit.sql downgrade 0900 0800 1907211503280900d 1 2021-07-19 15:03:29
drools-db-migration | 104 0100-jpapolicyaudit.sql upgrade 0800 0900 1907211504240900u 1 2021-07-19 15:04:24
drools-db-migration | 105 0110-sequence.sql upgrade 0800 0900 1907211504240900u 1 2021-07-19 15:04:24
drools-db-migration | 106 0120-JpaPolicyAuditIndex_timestamp.sql upgrade 0800 0900 1907211504240900u 1 2021-07-19 15:04:24
drools-db-migration | policyadmin: OK @ 0900
This a a full install from version 0 → 0900
Followed by a downgrade from 0900 → 0800
Followed by an upgrade from 0800 → 0900
Migration Schema
MariaDB [(none)]> use migration;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [migration]> show tables;
+----------------------------+
| Tables_in_migration |
+----------------------------+
| db_metadata_versions |
| policyadmin_change_history |
+----------------------------+
2 rows in set (0.000 sec)
MariaDB [migration]> select * from db_metadata_versions;
+-------------+---------+
| name | version |
+-------------+---------+
| policyadmin | 0900 |
+-------------+---------+
1 row in set (0.000 sec)
MariaDB [migration]> select * from policyadmin_change_history;
+-----+---------------------------------------------------------------+-----------+--------------+------------+-------------------+---------+---------------------+
| ID | script | operation | from_version | to_version | tag | success | atTime |
+-----+---------------------------------------------------------------+-----------+--------------+------------+-------------------+---------+---------------------+
| 1 | 0100-jpapdpgroup_properties.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 2 | 0110-jpapdpstatistics_enginestats.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 3 | 0120-jpapdpsubgroup_policies.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 4 | 0130-jpapdpsubgroup_properties.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 5 | 0140-jpapdpsubgroup_supportedpolicytypes.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 6 | 0150-jpatoscacapabilityassignment_attributes.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 7 | 0160-jpatoscacapabilityassignment_metadata.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 8 | 0170-jpatoscacapabilityassignment_occurrences.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 9 | 0180-jpatoscacapabilityassignment_properties.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 10 | 0190-jpatoscacapabilitytype_metadata.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 11 | 0200-jpatoscacapabilitytype_properties.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 12 | 0210-jpatoscadatatype_constraints.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 13 | 0220-jpatoscadatatype_metadata.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 14 | 0230-jpatoscadatatype_properties.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 15 | 0240-jpatoscanodetemplate_metadata.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 16 | 0250-jpatoscanodetemplate_properties.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 17 | 0260-jpatoscanodetype_metadata.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 18 | 0270-jpatoscanodetype_properties.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 19 | 0280-jpatoscapolicy_metadata.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 20 | 0290-jpatoscapolicy_properties.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 21 | 0300-jpatoscapolicy_targets.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 22 | 0310-jpatoscapolicytype_metadata.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 23 | 0320-jpatoscapolicytype_properties.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:20 |
| 24 | 0330-jpatoscapolicytype_targets.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 25 | 0340-jpatoscapolicytype_triggers.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 26 | 0350-jpatoscaproperty_constraints.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 27 | 0360-jpatoscaproperty_metadata.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 28 | 0370-jpatoscarelationshiptype_metadata.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 29 | 0380-jpatoscarelationshiptype_properties.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 30 | 0390-jpatoscarequirement_metadata.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 31 | 0400-jpatoscarequirement_occurrences.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 32 | 0410-jpatoscarequirement_properties.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 33 | 0420-jpatoscaservicetemplate_metadata.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 34 | 0430-jpatoscatopologytemplate_inputs.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 35 | 0440-pdpgroup_pdpsubgroup.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 36 | 0450-pdpgroup.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 37 | 0460-pdppolicystatus.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 38 | 0470-pdp.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 39 | 0480-pdpstatistics.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 40 | 0490-pdpsubgroup_pdp.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 41 | 0500-pdpsubgroup.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 42 | 0510-toscacapabilityassignment.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 43 | 0520-toscacapabilityassignments.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 44 | 0530-toscacapabilityassignments_toscacapabilityassignment.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 45 | 0540-toscacapabilitytype.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 46 | 0550-toscacapabilitytypes.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 47 | 0560-toscacapabilitytypes_toscacapabilitytype.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 48 | 0570-toscadatatype.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 49 | 0580-toscadatatypes.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 50 | 0590-toscadatatypes_toscadatatype.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 51 | 0600-toscanodetemplate.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 52 | 0610-toscanodetemplates.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 53 | 0620-toscanodetemplates_toscanodetemplate.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 54 | 0630-toscanodetype.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:21 |
| 55 | 0640-toscanodetypes.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 56 | 0650-toscanodetypes_toscanodetype.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 57 | 0660-toscaparameter.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 58 | 0670-toscapolicies.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 59 | 0680-toscapolicies_toscapolicy.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 60 | 0690-toscapolicy.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 61 | 0700-toscapolicytype.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 62 | 0710-toscapolicytypes.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 63 | 0720-toscapolicytypes_toscapolicytype.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 64 | 0730-toscaproperty.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 65 | 0740-toscarelationshiptype.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 66 | 0750-toscarelationshiptypes.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 67 | 0760-toscarelationshiptypes_toscarelationshiptype.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 68 | 0770-toscarequirement.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 69 | 0780-toscarequirements.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 70 | 0790-toscarequirements_toscarequirement.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 71 | 0800-toscaservicetemplate.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 72 | 0810-toscatopologytemplate.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 73 | 0820-toscatrigger.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 74 | 0830-FK_ToscaNodeTemplate_capabilitiesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 75 | 0840-FK_ToscaNodeTemplate_requirementsName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 76 | 0850-FK_ToscaNodeType_requirementsName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 77 | 0860-FK_ToscaServiceTemplate_capabilityTypesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 78 | 0870-FK_ToscaServiceTemplate_dataTypesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 79 | 0880-FK_ToscaServiceTemplate_nodeTypesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 80 | 0890-FK_ToscaServiceTemplate_policyTypesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:22 |
| 81 | 0900-FK_ToscaServiceTemplate_relationshipTypesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 82 | 0910-FK_ToscaTopologyTemplate_nodeTemplatesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 83 | 0920-FK_ToscaTopologyTemplate_policyName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 84 | 0930-TscaServiceTemplatetopologyTemplateParentLocalName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 85 | 0940-FK_ToscaNodeTemplate_capabilitiesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 86 | 0950-FK_ToscaNodeTemplate_requirementsName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 87 | 0960-FK_ToscaNodeType_requirementsName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 88 | 0970-FK_ToscaServiceTemplate_capabilityTypesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 89 | 0980-FK_ToscaServiceTemplate_dataTypesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 90 | 0990-FK_ToscaServiceTemplate_nodeTypesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 91 | 1000-FK_ToscaServiceTemplate_policyTypesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 92 | 1010-FK_ToscaServiceTemplate_relationshipTypesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 93 | 1020-FK_ToscaTopologyTemplate_nodeTemplatesName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 94 | 1030-FK_ToscaTopologyTemplate_policyName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 95 | 1040-IDX_TSIDX1.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 96 | 1050-PdpPolicyStatus_PdpGroup.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 97 | 1060-TscaServiceTemplatetopologyTemplateParentLocalName.sql | upgrade | 0 | 0800 | 1907211503200800u | 1 | 2021-07-19 15:03:23 |
| 98 | 0100-jpapolicyaudit.sql | upgrade | 0800 | 0900 | 1907211503200900u | 1 | 2021-07-19 15:03:23 |
| 99 | 0110-sequence.sql | upgrade | 0800 | 0900 | 1907211503200900u | 1 | 2021-07-19 15:03:23 |
| 100 | 0120-JpaPolicyAuditIndex_timestamp.sql | upgrade | 0800 | 0900 | 1907211503200900u | 1 | 2021-07-19 15:03:23 |
| 101 | 0120-JpaPolicyAuditIndex_timestamp.sql | downgrade | 0900 | 0800 | 1907211503280900d | 1 | 2021-07-19 15:03:28 |
| 102 | 0110-sequence.sql | downgrade | 0900 | 0800 | 1907211503280900d | 1 | 2021-07-19 15:03:29 |
| 103 | 0100-jpapolicyaudit.sql | downgrade | 0900 | 0800 | 1907211503280900d | 1 | 2021-07-19 15:03:29 |
| 104 | 0100-jpapolicyaudit.sql | upgrade | 0800 | 0900 | 1907211504240900u | 1 | 2021-07-19 15:04:24 |
| 105 | 0110-sequence.sql | upgrade | 0800 | 0900 | 1907211504240900u | 1 | 2021--------------
drools-db-migration | DROP TABLE IF EXISTS `jpapdpsubgroup_properties`
drools-db-migration | 07-19 15:04:24 |
| 106 | 0120-JpaPolicyAuditIndex_timestamp.sql | upgrade | 0800 | 0900 | 1907211504240900u | 1 | 2021-07-19 15:04:24 |
+-----+---------
drools-db-migration |
drools-db-migration | --------------
drools-db-migration | DROP TABLE IF EXISTS `jpapdpsubgroup_policies`
drools-db-migration | --------------
drools-db-migration |
drools-db-migration | --------------
drools+-db-migration | DROP TABLE IF EXISTS `jpapdpstatistics_enginestats`
drools-db-migration | -------+-------
drools-db-migration |
drools-db-migration | ---+-----------
drools-db-migration | DROP TABLE IF EXISTS `jpapdpgroup_properties`
drools-db-migration | +-----------------
drools-db-migration |
drools+-db-migration | policyadmin: OK: downgrade (0)
drools-db-migration | name version
drools-db-migration | policyadmin 0
drools-db-migration | script operation success atTime
drools-db-migration | 01-honolulu.upgrade.sql upgrade 1 2021-07-06 11:12:50
drools-db-migration | 02-istanbul.upgrade.sql upgrade 1 2021-07-06 11:12:50
drools-db-migration | 01-honolulu.downgrade.sql downgrade 1 2021-07-06 11:12:51
drools-db-migration | 02-istanbul.downgrade.sql downgrade 1 2021-07-06 11:12:51
drools-db-migration | policyadmin: OK @ 0-+---------------------+
106 rows in set (0.001 sec)