Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<changeSet id="00000000000001_adminconsole_dataServ_restore" author="entando" context="restore" />

<changeSet id="20230118100000_adminconsole_usershortcuts_table_remove" author="entando">
<changeSet id="20230118100000_adminconsole_usershortcuts_table_remove_v2" author="entando">
<preConditions onFail="MARK_RAN">
<tableExists tableName="authusershortcuts"></tableExists>
</preConditions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="00000000000001_adminconsole_dataServ_production" author="entando" context="production">
<changeSet id="00000000000001_adminconsole_dataServ_production_v2" author="entando" context="production">
<preConditions onFail="MARK_RAN">
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_adminconsole_dataServ_restore'</sqlCheck>
<!-- This changeSet contains the same logic (in XML) of the old 00000000000001_dataServ_production.sql file, that was included by changeSetServ.xml
Execution of this changeSet must be skipped if tables had already been filled using that file -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_adminconsole_dataServ_production' AND filename = 'liquibase/admin-console/changeSetServ.xml'</sqlCheck>
<tableExists tableName="authusershortcuts"/>
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM authusershortcuts WHERE username = 'admin'</sqlCheck>
</preConditions>
<insert tableName="authusershortcuts">
<column name="username" value="admin" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="00000000000001_adminconsole_schemaServ" author="entando" >

<changeSet id="00000000000001_adminconsole_schemaServ_v2" author="entando" >
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_adminconsole_schemaServ'</sqlCheck>
<not>
<tableExists tableName="authusershortcuts"/>
</not>
</preConditions>

<createTable tableName="authusershortcuts" >
<column name="username" type="varchar(40)">
<constraints primaryKey="true" nullable="false"/>
Expand All @@ -15,7 +21,7 @@
<constraints nullable="false" />
</column>
</createTable>

</changeSet>

</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="00000000000001_jacms_dataPort_production" author="entando" context="production">
<changeSet id="00000000000001_jacms_dataPort_production_v2" author="entando" context="production">

<preConditions onFail="MARK_RAN">
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jacms_dataPort_production'</sqlCheck>
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jacms_dataPort_restore'</sqlCheck>
<!-- This changeSet contains the same logic (in XML) of the old 00000000000001_dataPort_production.sql file, that was included by changeSetPort.xml
Execution of this changeSet must be skipped if tables had already been filled using that file -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jacms_dataPort_production' AND filename = 'liquibase/jacms/changeSetPort.xml'</sqlCheck>
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM sysconfig WHERE item = 'contentTypes'</sqlCheck>
</preConditions>

<insert tableName="sysconfig">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="00000000000001_jacms_schemaPort" author="entando">
<changeSet id="00000000000001_jacms_schemaPort_v2" author="entando">
<preConditions onFail="MARK_RAN">
<and>
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jacms_schemaPort'</sqlCheck>
<not>
<tableExists tableName="contents"/>
</not>
</and>
</preConditions>

<createTable tableName="contentmodels" >
<column name="modelid" type="int">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="00000000000002_jacms_schemaPort" author="entando">
<changeSet id="00000000000002_jacms_schemaPort" author="entando" failOnError="false">
<addNotNullConstraint tableName="contentattributeroles" columnName="attrname" columnDataType="varchar(30)"></addNotNullConstraint>
<addNotNullConstraint tableName="contentattributeroles" columnName="rolename" columnDataType="varchar(50)"></addNotNullConstraint>
<addNotNullConstraint tableName="contentsearch" columnName="attrname" columnDataType="varchar(30)"></addNotNullConstraint>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="20230224000000_jacms_social_tag_roles" author="entando" context="production">
<changeSet id="20230224000000_jacms_social_tag_roles_v2" author="entando" context="production">

<preConditions onFail="MARK_RAN">
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '20230224000000_jacms_social_tag_roles'</sqlCheck>
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM sysconfig WHERE item = 'contentTypesRoles'</sqlCheck>
</preConditions>

<insert tableName="sysconfig">
<column name="version" value="production" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="00000000000001_jpcontentscheduler_dataPort_production" author="entando" context="production">
<changeSet id="00000000000001_jpcontentscheduler_dataPort_production_v2" author="entando" context="production">
<preConditions onFail="MARK_RAN">
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jpcontentscheduler_dataPort_restore'</sqlCheck>
<!-- This changeSet contains the same logic (in XML) of the old 00000000000001_dataPort_production.sql file, that was included by changeSetPort.xml
Execution of this changeSet must be skipped if tables had already been filled using that file -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jpcontentscheduler_dataPort_production' AND filename = 'liquibase/changeSetPort.xml'</sqlCheck>
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM sysconfig WHERE item = 'cthread_config'</sqlCheck>
</preConditions>

<insert tableName="sysconfig">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="00000000000001_dataPort_production" author="entando" context="production">
<changeSet id="00000000000001_dataPort_production_v2" author="entando" context="production">
<preConditions onFail="MARK_RAN">
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_dataPort_restore'</sqlCheck>
<!-- This changeSet contains the same logic (in XML) of the old 00000000000001_dataPort_production.sql file, that was included by changeSetPort.xml
Execution of this changeSet must be skipped if tables had already been filled using that file -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_dataPort_production' AND filename = 'liquibase/changeSetPort.xml'</sqlCheck>
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM categories WHERE catcode = 'home'</sqlCheck>
</preConditions>

<insert tableName="categories">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="00000000000001_schemaPort" author="entando" >
<changeSet id="00000000000001_schemaPort_v2" author="entando" >
<preConditions onFail="MARK_RAN">
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_schemaPort'</sqlCheck>
<not>
<tableExists tableName="sysconfig"/>
</not>
</preConditions>

<createTable tableName="sysconfig" >
<column name="version" type="varchar(10)">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="00000000000002_schemaPort" author="entando">
<changeSet id="00000000000002_schemaPort" author="entando" failOnError="false">
<addNotNullConstraint tableName="widgetcatalog" columnName="locked" columnDataType="smallint"></addNotNullConstraint>
<addNotNullConstraint tableName="pages" columnName="pos" columnDataType="int"></addNotNullConstraint>
<addNotNullConstraint tableName="localstrings" columnName="stringvalue" columnDataType="longtext"></addNotNullConstraint>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="20221004100000_messages_system" author="entando" context="production">
<changeSet id="20221004100000_messages_system_v2" author="entando" context="production">
<preConditions onFail="MARK_RAN">
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '20221004100000_messages_system'</sqlCheck>
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM localstrings WHERE keycode = 'USER_UNAUTHORIZED'</sqlCheck>
</preConditions>

<insert tableName="localstrings">
<column name="keycode" value="USER_UNAUTHORIZED" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="20230224000000_default_profile_roles" author="entando" context="production">
<changeSet id="20230224000000_default_profile_roles_v2" author="entando" context="production">
<preConditions onFail="MARK_RAN">
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '20230224000000_default_profile_roles'</sqlCheck>
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM sysconfig WHERE item = 'userProfileTypesRoles'</sqlCheck>
</preConditions>

<insert tableName="sysconfig">
<column name="version" value="production" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="20230407000000_disable_content_menu" author="entando">
<changeSet id="20230407000000_disable_content_menu_v2" author="entando">
<preConditions onFail="MARK_RAN">
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '20230407000000_disable_content_menu'</sqlCheck>
<not>
<columnExists tableName="userpreferences" columnName="disablecontentmenu" />
</not>
</preConditions>

<addColumn tableName="userpreferences">
<column name="disablecontentmenu"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="00000000000001_dataServ_production" author="entando" context="production">
<changeSet id="00000000000001_dataServ_production_v2" author="entando" context="production">
<preConditions onFail="MARK_RAN">
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_dataServ_restore'</sqlCheck>
<!-- This changeSet contains the same logic (in XML) of the old 00000000000001_dataServ_production.sql file, that was included by changeSetServ.xml
Execution of this changeSet must be skipped if tables had already been filled using that file -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_dataServ_production' AND filename = 'liquibase/changeSetServ.xml'</sqlCheck>
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM authgroups WHERE groupname = 'administrators'</sqlCheck>
</preConditions>

<insert tableName="authgroups">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="00000000000001_schemaServ" author="entando">
<changeSet id="00000000000001_schemaServ_v2" author="entando">
<preConditions onFail="MARK_RAN">
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_schemaServ'</sqlCheck>
<not>
<tableExists tableName="authgroups"/>
</not>
</preConditions>

<createTable tableName="authgroups" >
<column name="groupname" type="varchar(20)">
Expand Down Expand Up @@ -327,7 +334,14 @@
<sql>CREATE TABLE api_oauth_consumers (consumerkey VARCHAR(100) NOT NULL, consumersecret VARCHAR(100) NOT NULL, name VARCHAR(255), description CLOB NOT NULL, callbackurl CLOB, scope VARCHAR(255), authorizedgranttypes VARCHAR(255), expirationdate TIMESTAMP, issueddate TIMESTAMP, CONSTRAINT PK_API_OAUTH_CONSUMERS PRIMARY KEY (consumerkey))</sql>
</changeSet>

<changeSet id="00000000000001_schemaServ_consumers" author="entando" dbms="!derby">
<changeSet id="00000000000001_schemaServ_consumers_v2" author="entando" dbms="!derby">
<preConditions onFail="MARK_RAN">
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_schemaServ_consumers'</sqlCheck>
<not>
<tableExists tableName="api_oauth_consumers"/>
</not>
</preConditions>
<createTable tableName="api_oauth_consumers" >
<column name="consumerkey" type="varchar(100)">
<constraints primaryKey="true" nullable="false"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="00000000000002_schemaServ" author="entando">
<changeSet id="00000000000002_schemaServ" author="entando" failOnError="false">
<addNotNullConstraint tableName="authuserprofileattrroles" columnName="attrname" columnDataType="varchar(30)"></addNotNullConstraint>
<addNotNullConstraint tableName="authuserprofileattrroles" columnName="rolename" columnDataType="varchar(50)"></addNotNullConstraint>
<addNotNullConstraint tableName="authuserprofilesearch" columnName="attrname" columnDataType="varchar(30)"></addNotNullConstraint>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd">

<changeSet id="20230228000000_unused_permission" author="entando">
<changeSet id="20230228000000_unused_permission_v2" author="entando">
<preConditions onFail="MARK_RAN">
<!-- Use uppercase table name to avoid MySQL issue -->
<sqlCheck expectedResult="0">SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '20230228000000_unused_permission'</sqlCheck>
<tableExists tableName="authrolepermissions"/>
</preConditions>

<delete tableName="authrolepermissions">
<where>rolename='reviewer'</where>
Expand Down
Loading
Loading