Skip to content
Snippets Groups Projects
Commit cfd612fa authored by Pascal Neub's avatar Pascal Neub
Browse files

Added basic keyword migration scripts

fixed minor export bug in migration process
added documentation
parent 24cdd189
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">
<include file="init_keyword_category.xml" relativeToChangelogFile="true"/>
<include file="update_keyword_entry.xml" relativeToChangelogFile="true"/>
<include file="update_keyword_attribute.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>
\ No newline at end of file
<?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="autogenerated" id="7a58d5be-9d3d-4ee6-b403-f2dac44d9b60">
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="05fe9872-c1a8-41ab-bf0b-d0df0537fe4f"/>
<where>AB_KEYWORD_ATTRIBUTEID = '2fabbd9a-89d2-49e3-b3aa-1dcbc77252c7'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="91e847b9-9c35-4e1e-8936-045eb7d4f90a"/>
<where>AB_KEYWORD_ATTRIBUTEID = 'b9766994-4e7d-4079-a0bc-f1397f93047f'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="a5206aff-79f8-413e-a76d-4cb9d39694d3"/>
<where>AB_KEYWORD_ATTRIBUTEID = '14c2d515-a42f-4618-b534-7a23369d21e6'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="6457580f-aa4c-49d8-a92e-a9255e3dac34"/>
<where>AB_KEYWORD_ATTRIBUTEID = '7250ff28-1d48-41cc-bb36-8c33ace341bb'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="6457580f-aa4c-49d8-a92e-a9255e3dac34"/>
<where>AB_KEYWORD_ATTRIBUTEID = '3ea2ea72-e615-4e77-befb-e664fa5ec4e1'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="cda60290-b041-450c-8397-6e462c45835f"/>
<where>AB_KEYWORD_ATTRIBUTEID = '5e65d4a0-af83-4a7b-babb-b1b7af4b9f20'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="cda60290-b041-450c-8397-6e462c45835f"/>
<where>AB_KEYWORD_ATTRIBUTEID = 'd6c0fd72-ded2-4e4d-adf5-f8832d7b24f2'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="1f700fd2-5295-43a9-95ad-e73add4b5086"/>
<where>AB_KEYWORD_ATTRIBUTEID = '1d5c5d49-0ffd-47fb-af10-542f7cf454cd'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="1f700fd2-5295-43a9-95ad-e73add4b5086"/>
<where>AB_KEYWORD_ATTRIBUTEID = 'c4c5352b-ff72-4323-80b9-631a24dd7245'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="ec9ac6e2-d2de-4e8e-bfad-bebd38c65026"/>
<where>AB_KEYWORD_ATTRIBUTEID = '6b951c1e-a0fd-4dbf-b139-e7cda94851cf'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="ad91fa20-157b-4e57-b9ad-1281e40024b3"/>
<where>AB_KEYWORD_ATTRIBUTEID = '307ecfc6-15c8-4ab9-8afa-e97b90a00c5f'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="b3765719-9d07-41c4-a813-18bc9056db1a"/>
<where>AB_KEYWORD_ATTRIBUTEID = '0bdeb691-f90a-4d7e-a99a-08c60816232c'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="e23c8316-d43a-4606-803e-d4488823cc52"/>
<where>AB_KEYWORD_ATTRIBUTEID = '14c2d515-a42f-4618-b534-7a23369d2001'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="e23c8316-d43a-4606-803e-d4488823cc52"/>
<where>AB_KEYWORD_ATTRIBUTEID = '14c2d515-a42f-4618-b534-7a23369d2002'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="e23c8316-d43a-4606-803e-d4488823cc52"/>
<where>AB_KEYWORD_ATTRIBUTEID = '14c2d515-a42f-4618-b534-7a23369d2003'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="e23c8316-d43a-4606-803e-d4488823cc52"/>
<where>AB_KEYWORD_ATTRIBUTEID = '14c2d515-a42f-4618-b534-7a23369d2004'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="53a36940-7781-4d62-bf8d-478c6c3511bf"/>
<where>AB_KEYWORD_ATTRIBUTEID = 'e187a585-9ab1-4dd4-a2e9-2db14d4cc3a7'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="0c3addc3-cbe9-4bdf-8db7-a53401b24a22"/>
<where>AB_KEYWORD_ATTRIBUTEID = '4b05ec8a-6964-40e5-8713-0043ca926eb6'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="6818d2a6-f47a-4d72-a0b2-3fc6fc74fb27"/>
<where>AB_KEYWORD_ATTRIBUTEID = '472f9bc2-3331-49f9-aba2-72d5eeb89654'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="f3986324-87ce-485f-8688-c4e228c39fc6"/>
<where>AB_KEYWORD_ATTRIBUTEID = 'af6a0af9-0102-426b-a1f7-c8abfea79793'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="f3986324-87ce-485f-8688-c4e228c39fc6"/>
<where>AB_KEYWORD_ATTRIBUTEID = '6f10015d-b7ee-43aa-99f9-87960ec2e4fd'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="f3986324-87ce-485f-8688-c4e228c39fc6"/>
<where>AB_KEYWORD_ATTRIBUTEID = '729a41d1-0463-480d-bf7b-0eb6c2e96f37'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="76fc02b9-a1b6-4c76-bdd5-a52d0e1ef286"/>
<where>AB_KEYWORD_ATTRIBUTEID = 'ec51253e-9b45-468d-aafa-42331e54f32b'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="923217a2-991e-444a-9a86-c3f56ba90f93"/>
<where>AB_KEYWORD_ATTRIBUTEID = '93d60e4b-e984-423e-b97f-d2abf61de41d'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="923217a2-991e-444a-9a86-c3f56ba90f93"/>
<where>AB_KEYWORD_ATTRIBUTEID = 'f1413a2f-6631-4255-9dc9-a28e6eb30497'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="ab8d06bb-18eb-4fbe-9e00-ecb34bd38c8f"/>
<where>AB_KEYWORD_ATTRIBUTEID = 'b5a322c7-41a0-4713-b90a-3c3151833f8d'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="b3765719-9d07-41c4-a813-18bc9056db1a"/>
<where>AB_KEYWORD_ATTRIBUTEID = '08fcb5db-531d-4a83-8c6e-b9c9c95dcb16'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="b3765719-9d07-41c4-a813-18bc9056db1a"/>
<where>AB_KEYWORD_ATTRIBUTEID = '605be9b3-1fe7-4bcc-9a06-8e8651655985'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="c03a5abe-0f21-41a3-8506-9b13db7ea407"/>
<where>AB_KEYWORD_ATTRIBUTEID = '8365d915-85b9-4881-9705-542c98750078'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="6457580f-aa4c-49d8-a92e-a9255e3dac34"/>
<where>AB_KEYWORD_ATTRIBUTEID = 'ace00630-1e07-4615-8d61-2478995538fa'</where>
</update>
<update tableName="AB_KEYWORD_ATTRIBUTE">
<column name="AB_KEYWORD_CATEGORY_ID" value="6a4a5250-6231-4bf7-8c16-bb5994c4e2d0"/>
<where>AB_KEYWORD_ATTRIBUTEID = 'b03f93a2-3b87-4a98-b3f9-9ed2358abdfe'</where>
</update>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
...@@ -12,4 +12,5 @@ ...@@ -12,4 +12,5 @@
<include relativeToChangelogFile="true" file="SalesprojectConversion/changelog.xml"/> <include relativeToChangelogFile="true" file="SalesprojectConversion/changelog.xml"/>
<include relativeToChangelogFile="true" file="Checklists/changelog.xml"/> <include relativeToChangelogFile="true" file="Checklists/changelog.xml"/>
<include relativeToChangelogFile="true" file="Keywords/changelog.xml"/> <include relativeToChangelogFile="true" file="Keywords/changelog.xml"/>
<include relativeToChangelogFile="true" file="KeywordMigration/changelog.xml"/>
</databaseChangeLog> </databaseChangeLog>
\ No newline at end of file
= Keyword Migration
This process can be used to, either directly migrate the keywords in the database, or generating liquibase scripts which do the same. It can also write the generated files to the server log.
[EXPORT_TO_LIQUIBASE]
If the EXPORT_TO_LIQUIBASE option is set to true, the process will generate liquibase files, otherwise it would directly modify the database tables.
[WRITE_FILES_TO_LOG]
If the WRITE_FILES_TO_LOG is set to true, the generated liquibase files will be written to the server log. This is especially useful for cloud systems.
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<name>migrateKeywordContainers</name> <name>migrateKeywordContainers</name>
<title>Migrate keyword containers</title> <title>Migrate keyword containers</title>
<majorModelMode>DISTRIBUTED</majorModelMode> <majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/process/migrateKeywordContainers/documentation.adoc</documentation>
<process>%aditoprj%/process/migrateKeywordContainers/process.js</process> <process>%aditoprj%/process/migrateKeywordContainers/process.js</process>
<publishAsWebservice v="true" /> <publishAsWebservice v="true" />
<alias>Data_alias</alias> <alias>Data_alias</alias>
......
...@@ -47,7 +47,7 @@ if(EXPORT_TO_LIQUIBASE) ...@@ -47,7 +47,7 @@ if(EXPORT_TO_LIQUIBASE)
else else
{ {
var outFolderPath = vars.get("$sys.servertemp") + "/" + "keywordMigration" + "/"; var outFolderPath = vars.get("$sys.servertemp") + "/" + "keywordMigration" + "/";
fileIO.storeData(outFolderPath + "init_keyword_category.xml", fileIO.storeData(outFolderPath + name,
fileContent, util.DATA_TEXT, false, "UTF-8"); fileContent, util.DATA_TEXT, false, "UTF-8");
} }
} }
......
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