Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have checked and the foreignKeyName does not exist
- ChangeSet
- =========
- <changeSet id="20100306-095513a" author="thilini.hg" dbms="mysql">
- <preConditions onFail="MARK_RAN">
- <foreignKeyConstraintExists foreignKeyName="alert_assigned_to_user"/>
- </preConditions>
- <comment>Dropping unused foreign key from notification alert table</comment>
- <dropForeignKeyConstraint baseTableName="notification_alert" constraintName="alert_assigned_to_user"/>
- </changeSet>
- Error Stack Trace
- ================
- SEVERE 10/7/15 6:46 PM:liquibase: Change Set liquibase-update-to-latest.xml::20100306-095513a::thilini.hg failed. Error: Migration failed for change set liquibase-update-to-latest.xml::20100306-095513a::thilini.hg:
- Reason:
- liquibase-update-to-latest.xml : Unknown column 'Attribute' in 'field list'
- :
- Caused By: Precondition Error
- liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20100306-095513a::thilini.hg:
- Reason:
- liquibase-update-to-latest.xml : Unknown column 'Attribute' in 'field list'
- :
- Caused By: Precondition Error
- at liquibase.changelog.ChangeSet.execute(ChangeSet.java:285)
- at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)
- at org.openmrs.util.DatabaseUpdater$1OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:200)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:229)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:164)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:149)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.run(UpdateFilter.java:681)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: liquibase.exception.PreconditionErrorException: Precondition Error
- at liquibase.precondition.core.ForeignKeyExistsPrecondition.check(ForeignKeyExistsPrecondition.java:65)
- at liquibase.precondition.core.AndPrecondition.check(AndPrecondition.java:34)
- at liquibase.precondition.core.PreconditionContainer.check(PreconditionContainer.java:199)
- at liquibase.changelog.ChangeSet.execute(ChangeSet.java:249)
- ... 8 more
- INFO 10/7/15 6:46 PM:liquibase: Successfully released change log lock
- ERROR - UpdateFilter$UpdateFilterCompletion$1.run(698) |2015-10-07 18:46:39,370| Unable to update the database
- org.openmrs.util.DatabaseUpdateException: There was an error while updating the database to the latest. file: liquibase-update-to-latest.xml. Error: Migration failed for change set liquibase-update-to-latest.xml::20100306-095513a::thilini.hg:
- Reason:
- liquibase-update-to-latest.xml : Unknown column 'Attribute' in 'field list'
- :
- Caused By: Precondition Error
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:152)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.run(UpdateFilter.java:681)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20100306-095513a::thilini.hg:
- Reason:
- liquibase-update-to-latest.xml : Unknown column 'Attribute' in 'field list'
- :
- Caused By: Precondition Error
- at liquibase.changelog.ChangeSet.execute(ChangeSet.java:285)
- at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)
- at org.openmrs.util.DatabaseUpdater$1OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:200)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:229)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:164)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:149)
- ... 2 more
- Caused by: liquibase.exception.PreconditionErrorException: Precondition Error
- at liquibase.precondition.core.ForeignKeyExistsPrecondition.check(ForeignKeyExistsPrecondition.java:65)
- at liquibase.precondition.core.AndPrecondition.check(AndPrecondition.java:34)
- at liquibase.precondition.core.PreconditionContainer.check(PreconditionContainer.java:199)
- at liquibase.changelog.ChangeSet.execute(ChangeSet.java:249)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement