OpenMRS Core Master
Build: #1857 failed
Job: Integration Test failed
Should pass if all existing drug order units and frequencies are mapped to concepts: Test case result
The below summarizes the result of the test "Should pass if all existing drug order units and frequencies are mapped to concepts" in build 1,857 of OpenMRS Core - OpenMRS Core Master - Integration Test.
- Description
- Should pass if all existing drug order units and frequencies are mapped to concepts
- Test class
- org.openmrs.util.databasechange.Database1_9_7UpgradeIT
- Method
- shouldPassIfAllExistingDrugOrderUnitsAndFrequenciesAreMappedToConcepts
- Duration
- 6 secs
- Status
- Failed (New Failure)
Error Log
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20151218-1530::Rahul,Swathi: Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement: ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]: Caused By: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement: ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]: Caused By: Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement: ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196] at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) at org.h2.message.DbException.get(DbException.java:179) at org.h2.message.DbException.get(DbException.java:155) at org.h2.schema.Schema.getTableOrView(Schema.java:456) at org.h2.command.ddl.AlterTableAddConstraint.tryUpdate(AlterTableAddConstraint.java:201) at org.h2.command.ddl.AlterTableAddConstraint.update(AlterTableAddConstraint.java:77) at org.h2.command.CommandContainer.update(CommandContainer.java:101) at org.h2.command.Command.executeUpdate(Command.java:260) at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:192) at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:164) at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:104) at liquibase.database.AbstractDatabase.execute(AbstractDatabase.java:1091) at liquibase.database.AbstractDatabase.executeStatements(AbstractDatabase.java:1075) at liquibase.changelog.ChangeSet.execute(ChangeSet.java:317) at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27) at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58) at liquibase.Liquibase.update(Liquibase.java:114) at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:228) at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:221) at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldPassIfAllExistingDrugOrderUnitsAndFrequenciesAreMappedToConcepts(Database1_9_7UpgradeIT.java:275)