Skip to content
Snippets Groups Projects
Commit ac5eca5f authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

liquibase-script: adjustments for mariaDB

parent e3ba8811
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
<column name="OBJECT_TYPE" type="NVARCHAR(63)">
</column>
</addColumn>
<renameColumn newColumnName="OBJECT_ROWID" oldColumnName="SALESPROJECT_ID" tableName="OFFER"/>
<renameColumn newColumnName="OBJECT_ROWID" oldColumnName="SALESPROJECT_ID" tableName="OFFER" columnDataType="CHAR(36)"/>
<update tableName="OFFER">
<column name="OBJECT_TYPE" value="Salesproject" />
<where>OBJECT_ROWID = '0833465c-8851-4fbb-b7e3-8c1d73c903da' </where>
......@@ -17,7 +17,8 @@
<addNotNullConstraint
tableName="OFFER"
columnName="OBJECT_TYPE"/>
columnName="OBJECT_TYPE"
columnDataType="NVARCHAR(63)"/>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
......@@ -6,8 +6,8 @@
<column name="OBJECT_TYPE" type="NVARCHAR(63)">
</column>
</addColumn>
<renameColumn newColumnName="OBJECT_ROWID" oldColumnName="SALESPROJECT_ID" tableName="SALESPROJECT_COMPETITION"/>
<renameColumn newColumnName="COMPETITIONID" oldColumnName="SALESPROJECT_COMPETITIONID" tableName="SALESPROJECT_COMPETITION"/>
<renameColumn newColumnName="OBJECT_ROWID" oldColumnName="SALESPROJECT_ID" tableName="SALESPROJECT_COMPETITION" columnDataType="CHAR(36)"/>
<renameColumn newColumnName="COMPETITIONID" oldColumnName="SALESPROJECT_COMPETITIONID" tableName="SALESPROJECT_COMPETITION" columnDataType="CHAR(36)"/>
<update tableName="SALESPROJECT_COMPETITION">
<column name="OBJECT_TYPE" value="Salesproject" />
<where>OBJECT_ROWID = '0833465c-8851-4fbb-b7e3-8c1d73c903da' </where>
......@@ -15,7 +15,8 @@
<addNotNullConstraint
tableName="SALESPROJECT_COMPETITION"
columnName="OBJECT_TYPE"/>
columnName="OBJECT_TYPE"
columnDataType="NVARCHAR(63)"/>
<renameTable oldTableName="SALESPROJECT_COMPETITION" newTableName="COMPETITION"/>
......
......@@ -6,8 +6,8 @@
<column name="OBJECT_TYPE" type="NVARCHAR(63)">
</column>
</addColumn>
<renameColumn newColumnName="OBJECT_ROWID" oldColumnName="SALESPROJECT_ID" tableName="SALESPROJECT_FORECAST"/>
<renameColumn newColumnName="FORECASTID" oldColumnName="SALESPROJECT_FORECASTID" tableName="SALESPROJECT_FORECAST"/>
<renameColumn newColumnName="OBJECT_ROWID" oldColumnName="SALESPROJECT_ID" tableName="SALESPROJECT_FORECAST" columnDataType="CHAR(36)"/>
<renameColumn newColumnName="FORECASTID" oldColumnName="SALESPROJECT_FORECASTID" tableName="SALESPROJECT_FORECAST" columnDataType="CHAR(36)"/>
<update tableName="SALESPROJECT_FORECAST">
<column name="OBJECT_TYPE" value="Salesproject" />
<where>OBJECT_ROWID = '0833465c-8851-4fbb-b7e3-8c1d73c903da' </where>
......@@ -15,7 +15,8 @@
<addNotNullConstraint
tableName="SALESPROJECT_FORECAST"
columnName="OBJECT_TYPE"/>
columnName="OBJECT_TYPE"
columnDataType="NVARCHAR(63)"/>
<renameTable oldTableName="SALESPROJECT_FORECAST" newTableName="FORECAST"/>
......
......@@ -6,9 +6,9 @@
<column name="OBJECT_TYPE" type="NVARCHAR(63)"/>
<column name="DECIDER" type="BOOLEAN"/>
</addColumn>
<renameColumn newColumnName="OBJECT_ROWID" oldColumnName="SALESPROJECT_ID" tableName="SALESPROJECT_MEMBER"/>
<renameColumn newColumnName="MEMBERID" oldColumnName="SALESPROJECT_MEMBERID" tableName="SALESPROJECT_MEMBER"/>
<renameColumn newColumnName="ROLE" oldColumnName="SALESPROJECT_ROLE" tableName="SALESPROJECT_MEMBER"/>
<renameColumn newColumnName="OBJECT_ROWID" oldColumnName="SALESPROJECT_ID" tableName="SALESPROJECT_MEMBER" columnDataType="CHAR(36)"/>
<renameColumn newColumnName="MEMBERID" oldColumnName="SALESPROJECT_MEMBERID" tableName="SALESPROJECT_MEMBER" columnDataType="CHAR(36)"/>
<renameColumn newColumnName="ROLE" oldColumnName="SALESPROJECT_ROLE" tableName="SALESPROJECT_MEMBER" columnDataType="CHAR(36)"/>
<update tableName="SALESPROJECT_MEMBER">
<column name="OBJECT_TYPE" value="Salesproject" />
<where>OBJECT_ROWID = '0833465c-8851-4fbb-b7e3-8c1d73c903da'</where>
......@@ -16,7 +16,8 @@
<addNotNullConstraint
tableName="SALESPROJECT_MEMBER"
columnName="OBJECT_TYPE"/>
columnName="OBJECT_TYPE"
columnDataType="NVARCHAR(63)"/>
<renameTable oldTableName="SALESPROJECT_MEMBER" newTableName="MEMBER"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment