Skip to content
Snippets Groups Projects
Commit 9a41988b authored by Fabian Adler's avatar Fabian Adler :arrow_upper_right:
Browse files

Fixing the uncommented demodata & status update

parent 3434b0e7
No related branches found
No related tags found
No related merge requests found
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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-3.6.xsd">
<changeSet author="d.nowack" id="bcd6cb02-d074-444f-a307-34973b3dd4dn">
<changeSet dbms="derby" author="s.pongratz" id="539e6d12-5ba4-424b-a29d-f63a48d07288">
<sql>
ALTER TABLE LEAD ADD COLUMN STATUS_NEW VARCHAR(36);
UPDATE LEAD SET STATUS_NEW = CAST ( CAST (STATUS as CHAR(36)) as VARCHAR(36) );
ALTER TABLE LEAD DROP COLUMN STATUS;
RENAME COLUMN LEAD.STATUS_NEW TO STATUS;
</sql>
</changeSet>
<changeSet author="s.pongratz" id="be79e660-b112-4f58-b53d-d9e36ecd145b">
<preConditions onFail="CONTINUE">
<not>
<dbms type="derby" />
</not>
</preConditions>
<modifyDataType tableName="LEAD" columnName="STATUS" newDataType="VARCHAR(36)"/>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
......@@ -20,5 +20,5 @@
<include relativeToChangelogFile="true" file="basic/2020.2.2/changelog.xml"/>
<!--enable this only when you definetly want to overwrite the existing data with demo records:-->
<include relativeToChangelogFile="true" file="basic/_demoData/changelog.xml" context="example"/>
<!--<include relativeToChangelogFile="true" file="basic/_demoData/changelog.xml" context="example"/>-->
</databaseChangeLog>
\ No newline at end of file
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