Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INFO 23/05/13 10:34:liquibase: Reading from `liquibasechangelog`
- WARNING 23/05/13 10:34:liquibase: modifyDataType will lose primary key/autoincre
- ment/not null settings for mysql. Use <sql> and re-specify all configuration if
- this is the case
- INFO 23/05/13 10:34:liquibase: Successfully acquired change log lock
- WARNING 23/05/13 10:34:liquibase: modifyDataType will lose primary key/autoincre
- ment/not null settings for mysql. Use <sql> and re-specify all configuration if
- this is the case
- INFO 23/05/13 10:34:liquibase: Reading from `liquibasechangelog`
- SEVERE 23/05/13 10:34:liquibase: Change Set liquibase-update-to-latest.xml::1-in
- crease-privilege-col-size-privilege::dkayiwa failed. Error: Error executing SQL
- ALTER TABLE `privilege` MODIFY `privilege` VARCHAR(255) NOT NULL: Cannot change
- column 'privilege': used in a foreign key constraint 'privilege_which_can_edit'
- of table 'openmrs.person_attribute_type'
- liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE `privileg
- e` MODIFY `privilege` VARCHAR(255) NOT NULL: Cannot change column 'privilege': u
- sed in a foreign key constraint 'privilege_which_can_edit' of table 'openmrs.per
- son_attribute_type'
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:62)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:104)
- at liquibase.database.AbstractDatabase.execute(AbstractDatabase.java:109
- 1)
- at liquibase.database.AbstractDatabase.executeStatements(AbstractDatabas
- e.java:1075)
- at liquibase.changelog.ChangeSet.execute(ChangeSet.java:317)
- at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27
- )
- at org.openmrs.util.DatabaseUpdater$1OpenmrsUpdateVisitor.visit(Database
- Updater.java:202)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.jav
- a:230)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.jav
- a:167)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.jav
- a:152)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.r
- un(UpdateFilter.java:680)
- at java.lang.Thread.run(Unknown Source)
- Caused by: java.sql.SQLException: Cannot change column 'privilege': used in a fo
- reign key constraint 'privilege_which_can_edit' of table 'openmrs.person_attribu
- te_type'
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3536)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3468)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1957)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2107)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2642)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2571)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:769)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:612)
- at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInSta
- tement(JdbcExecutor.java:92)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
- ... 12 more
- INFO 23/05/13 10:34:liquibase: Successfully released change log lock
- ERROR - UpdateFilter$UpdateFilterCompletion$1.run(697) |2013-05-23 10:34:10,199|
- 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 f
- ailed for change set liquibase-update-to-latest.xml::1-increase-privilege-col-si
- ze-privilege::dkayiwa:
- Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TA
- BLE `privilege` MODIFY `privilege` VARCHAR(255) NOT NULL: Cannot change column '
- privilege': used in a foreign key constraint 'privilege_which_can_edit' of table
- 'openmrs.person_attribute_type':
- Caused By: Error executing SQL ALTER TABLE `privilege` MODIFY `privile
- ge` VARCHAR(255) NOT NULL: Cannot change column 'privilege': used in a foreign k
- ey constraint 'privilege_which_can_edit' of table 'openmrs.person_attribute_type
- ':
- Caused By: Cannot change column 'privilege': used in a foreign key con
- straint 'privilege_which_can_edit' of table 'openmrs.person_attribute_type'
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.jav
- a:155)
- at org.openmrs.web.filter.update.UpdateFilter$UpdateFilterCompletion$1.r
- un(UpdateFilter.java:680)
- at java.lang.Thread.run(Unknown Source)
- Caused by: liquibase.exception.MigrationFailedException: Migration failed for ch
- ange set liquibase-update-to-latest.xml::1-increase-privilege-col-size-privilege
- ::dkayiwa:
- Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TA
- BLE `privilege` MODIFY `privilege` VARCHAR(255) NOT NULL: Cannot change column '
- privilege': used in a foreign key constraint 'privilege_which_can_edit' of table
- 'openmrs.person_attribute_type':
- Caused By: Error executing SQL ALTER TABLE `privilege` MODIFY `privile
- ge` VARCHAR(255) NOT NULL: Cannot change column 'privilege': used in a foreign k
- ey constraint 'privilege_which_can_edit' of table 'openmrs.person_attribute_type
- ':
- Caused By: Cannot change column 'privilege': used in a foreign key con
- straint 'privilege_which_can_edit' of table 'openmrs.person_attribute_type'
- at liquibase.changelog.ChangeSet.execute(ChangeSet.java:347)
- at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27
- )
- at org.openmrs.util.DatabaseUpdater$1OpenmrsUpdateVisitor.visit(Database
- Updater.java:202)
- at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.jav
- a:230)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.jav
- a:167)
- at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.jav
- a:152)
- ... 2 more
- Caused by: liquibase.exception.DatabaseException: Error executing SQL ALTER TABL
- E `privilege` MODIFY `privilege` VARCHAR(255) NOT NULL: Cannot change column 'pr
- ivilege': used in a foreign key constraint 'privilege_which_can_edit' of table '
- openmrs.person_attribute_type'
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:62)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:104)
- at liquibase.database.AbstractDatabase.execute(AbstractDatabase.java:109
- 1)
- at liquibase.database.AbstractDatabase.executeStatements(AbstractDatabas
- e.java:1075)
- at liquibase.changelog.ChangeSet.execute(ChangeSet.java:317)
- ... 8 more
- Caused by: java.sql.SQLException: Cannot change column 'privilege': used in a fo
- reign key constraint 'privilege_which_can_edit' of table 'openmrs.person_attribu
- te_type'
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3536)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3468)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1957)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2107)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2642)
- at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2571)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:769)
- at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:612)
- at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInSta
- tement(JdbcExecutor.java:92)
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
- ... 12 more
- INFO 23/05/13 10:34:liquibase: Reading from `liquibasechangelog`
- WARNING 23/05/13 10:34:liquibase: modifyDataType will lose primary key/autoincre
- ment/not null settings for mysql. Use <sql> and re-specify all configuration if
- this is the case
Advertisement
Add Comment
Please, Sign In to add comment