Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

rhbz1048293 Fix liquibase changeset to be compatible with mysql/mariadb version > 5.5 #756

Merged
merged 1 commit into from Apr 13, 2015

Conversation

seanf
Copy link
Contributor

@seanf seanf commented Mar 30, 2015

<addPrimaryKey tableName="HTermComment" columnNames="id" />
<addForeignKeyConstraint baseTableName="HGlossaryTerm"
baseColumnNames="glossaryEntryId" constraintName="UKglossaryterm_glossary_entry_id"
referencedTableName="HGlossaryEntry" referencedColumnNames="id" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add an xml comment with the reason for removing then adding the keys and constraints? I assume that the addAutoIncrement lines cannot be applied while the keys and constraints are in place, but we should not have to make such an assumption.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Done.

@@ -36,6 +36,9 @@
<ds.connection.url>jdbc:mysql://localhost:${mysql.port}/${ds.database}?characterEncoding=UTF-8</ds.connection.url>
<ds.driver.class>com.mysql.jdbc.Driver</ds.driver.class>

<mysql.dist.version>5.5.34</mysql.dist.version>
<!-- <mysql.dist.version>5.6.21</mysql.dist.version> -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you purposely just modify this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to test against both versions, and for the moment it's easier than switching the build params in jenkins.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough. Ping me if anything else changes and it needs another review.

@seanf
Copy link
Contributor Author

seanf commented Mar 31, 2015

@davidmason I have modified the changeset again. It now works on 5.6.14, just trying 5.5 again now.

@seanf
Copy link
Contributor Author

seanf commented Mar 31, 2015

@davidmason sorry, modified the changeset again. I just had to add another validCheckSum to make it work on existing databases. Looks like this is a reasonable procedure: https://wiki.openmrs.org/display/docs/How+to+Modify+a+Bad+Changeset

@davidmason
Copy link
Contributor

👍

@seanf seanf changed the title Fix liquibase changeset to be compatible with mysql/mariadb version > 5.5 rhbz1048293 Fix liquibase changeset to be compatible with mysql/mariadb version > 5.5 Apr 1, 2015
@seanf seanf added the On QA label Apr 1, 2015
@definite definite assigned definite and unassigned davidmason Apr 1, 2015
@seanf
Copy link
Contributor Author

seanf commented Apr 8, 2015

@djansen-redhat Are you taking this one over?

@djansen-redhat
Copy link
Contributor

✅ Tested. (Fedora 21, mariadb 10.0.17-1, Wildfly 8.2)
Ran into an issue with installing mariadb as a service, as well as an issue with duplicate mysql-connector-java packages which was resolved by removing the one in JBoss deployment, yum installing it and symlinking it to the deployments dir.

@seanf
Copy link
Contributor Author

seanf commented Apr 10, 2015

Ran into an issue with installing mariadb as a service, as well as an issue with duplicate mysql-connector-java packages which was resolved by removing the one in JBoss deployment, yum installing it and symlinking it to the deployments dir.

@djansen-redhat that sounds like a problem with zanata-3.6.0-wildfly-8.1.zip, is that right?

Are you saying you had duplicate mysql-connector-java packages, even before you put in the symlink?

alex-sl-eng pushed a commit that referenced this pull request Apr 13, 2015
rhbz1048293 Fix liquibase changeset to be compatible with mysql/mariadb version > 5.5
@alex-sl-eng alex-sl-eng merged commit 4e098e3 into integration/master Apr 13, 2015
@alex-sl-eng alex-sl-eng deleted the mariadb-fix branch April 13, 2015 01:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants