Skip to content

Instantly share code, notes, and snippets.

@mks-d
Created November 29, 2017 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mks-d/ed1b864645acb88e4cfc87e7f5a9cc96 to your computer and use it in GitHub Desktop.
Save mks-d/ed1b864645acb88e4cfc87e7f5a9cc96 to your computer and use it in GitHub Desktop.
Liquibase changesets for renaming complex data handlers of Attachments
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
<!--
See http://www.liquibase.org/manual/home#available_database_refactorings
for a list of supported elements and attributes
-->
<changeSet id="2.0.0-001" author="mks-d">
<comment>Renamed 'DefaultDocumentHandler' to 'DefaultAttachmentHandler'.</comment>
<update tableName="concept_complex">
<column name="handler" value="DefaultAttachmentHandler"></column>
<where>handler ='DefaultDocumentHandler'</where>
</update>
</changeSet>
<changeSet id="2.0.0-002" author="mks-d">
<comment>Renamed 'ImageDocumentHandler' to 'ImageAttachmentHandler'.</comment>
<update tableName="concept_complex">
<column name="handler" value="ImageAttachmentHandler"></column>
<where>handler ='ImageDocumentHandler'</where>
</update>
</changeSet>
</databaseChangeLog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment