Upgrade redmine 4.2.3 upgrade to 5.0.4 problem
Added by Anonymous over 1 year ago
Migrate problem
Migrate the database to the latest version:
bitnami@debian:/opt/bitnami/redmine$ bundle exec rake db:migrate RAILS_ENV=production
20170723112801 RenameCommentsToContent: migrating ========================
-- rename_column(:comments, :comments, :content) rake aborted!
StandardError: An error has occurred, all later migrations canceled:
Mysql2::Error: Unknown column 'comments' in 'comments'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in _query' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in block in query'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in handle_interrupt' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in query'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:206:in block (2 levels) in execute' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/dependencies/interlock.rb:48:in block in permit_concurrent_loads'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/share_lock.rb:187:in yield_shares' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/dependencies/interlock.rb:47:in permit_concurrent_loads'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:205:in block in execute' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:696:in block (2 levels) in log'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:695:in block in log'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/notifications/instrumenter.rb:24:in instrument' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:687:in log'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:204:in execute' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/mysql/database_statements.rb:52:in execute'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:372:in rename_column' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:929:in block in method_missing'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:897:in block in say_with_time' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:897:in say_with_time'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:918:in method_missing' /opt/bitnami/redmine/db/migrate/20170723112801_rename_comments_to_content.rb:3:in change'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:867:in exec_migration' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:851:in block (2 levels) in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:850:in block in migrate' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in with_connection'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:849:in migrate' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1037:in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1329:in block in execute_migration_in_transaction' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1382:in ddl_transaction'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1328:in execute_migration_in_transaction' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1302:in each'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1302:in migrate_without_lock' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1251:in block in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1401:in block in with_advisory_lock' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1416:in block in with_advisory_lock_connection'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in with_connection' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1416:in with_advisory_lock_connection'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1397:in with_advisory_lock' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1251:in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1086:in up' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1061:in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/tasks/database_tasks.rb:237:in migrate' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/railties/databases.rake:92:in block (3 levels) in <top (required)>'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/railties/databases.rake:90:in each' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/railties/databases.rake:90:in block (2 levels) in <top (required)>'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/exe/rake:27:in <top (required)>' /opt/bitnami/redmine/bin/bundle:108:in load'
/opt/bitnami/redmine/bin/bundle:108:in `
'
Caused by:
ActiveRecord::StatementInvalid: Mysql2::Error: Unknown column 'comments' in 'comments'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in _query' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in block in query'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in handle_interrupt' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in query'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:206:in block (2 levels) in execute' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/dependencies/interlock.rb:48:in block in permit_concurrent_loads'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/share_lock.rb:187:in yield_shares' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/dependencies/interlock.rb:47:in permit_concurrent_loads'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:205:in block in execute' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:696:in block (2 levels) in log'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:695:in block in log'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/notifications/instrumenter.rb:24:in instrument' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:687:in log'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:204:in execute' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/mysql/database_statements.rb:52:in execute'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:372:in rename_column' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:929:in block in method_missing'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:897:in block in say_with_time' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:897:in say_with_time'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:918:in method_missing' /opt/bitnami/redmine/db/migrate/20170723112801_rename_comments_to_content.rb:3:in change'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:867:in exec_migration' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:851:in block (2 levels) in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:850:in block in migrate' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in with_connection'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:849:in migrate' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1037:in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1329:in block in execute_migration_in_transaction' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1382:in ddl_transaction'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1328:in execute_migration_in_transaction' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1302:in each'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1302:in migrate_without_lock' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1251:in block in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1401:in block in with_advisory_lock' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1416:in block in with_advisory_lock_connection'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in with_connection' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1416:in with_advisory_lock_connection'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1397:in with_advisory_lock' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1251:in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1086:in up' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1061:in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/tasks/database_tasks.rb:237:in migrate' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/railties/databases.rake:92:in block (3 levels) in <top (required)>'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/railties/databases.rake:90:in each' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/railties/databases.rake:90:in block (2 levels) in <top (required)>'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/exe/rake:27:in <top (required)>' /opt/bitnami/redmine/bin/bundle:108:in load'
/opt/bitnami/redmine/bin/bundle:108:in `
'
Caused by:
Mysql2::Error: Unknown column 'comments' in 'comments'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in _query' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in block in query'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in handle_interrupt' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in query'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:206:in block (2 levels) in execute' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/dependencies/interlock.rb:48:in block in permit_concurrent_loads'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/share_lock.rb:187:in yield_shares' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/dependencies/interlock.rb:47:in permit_concurrent_loads'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:205:in block in execute' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:696:in block (2 levels) in log'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:695:in block in log'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/notifications/instrumenter.rb:24:in instrument' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:687:in log'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:204:in execute' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/mysql/database_statements.rb:52:in execute'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:372:in rename_column' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:929:in block in method_missing'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:897:in block in say_with_time' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:897:in say_with_time'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:918:in method_missing' /opt/bitnami/redmine/db/migrate/20170723112801_rename_comments_to_content.rb:3:in change'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:867:in exec_migration' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:851:in block (2 levels) in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:850:in block in migrate' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in with_connection'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:849:in migrate' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1037:in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1329:in block in execute_migration_in_transaction' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1382:in ddl_transaction'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1328:in execute_migration_in_transaction' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1302:in each'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1302:in migrate_without_lock' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1251:in block in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1401:in block in with_advisory_lock' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1416:in block in with_advisory_lock_connection'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:462:in with_connection' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1416:in with_advisory_lock_connection'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1397:in with_advisory_lock' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1251:in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1086:in up' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/migration.rb:1061:in migrate'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/tasks/database_tasks.rb:237:in migrate' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/railties/databases.rake:92:in block (3 levels) in <top (required)>'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/railties/databases.rake:90:in each' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7/lib/active_record/railties/databases.rake:90:in block (2 levels) in <top (required)>'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/exe/rake:27:in <top (required)>' /opt/bitnami/redmine/bin/bundle:108:in load'
/opt/bitnami/redmine/bin/bundle:108:in `
'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
Replies (2)
RE: Upgrade redmine 4.2.3 upgrade to 5.0.4 problem - Added by Lorenzo Meneghetti over 1 year ago
Hi, you missed some migrations in the past.
It’s not possible that you are executing migration and perform a 20170723112801 migration with redmine 4.2.3 that was issued on 20211010.
I’m sorry it’s your fault. If your DB is up to date you have to manually modify schema_migrations table.
Thanks
Lorenzo
RE: Upgrade redmine 4.2.3 upgrade to 5.0.4 problem - Added by Anonymous over 1 year ago
Thanks for your answer, can you help me what to do with this table?
Attachment schema_migrations.sql
schema_migrations.sql (5.48 KB) schema_migrations.sql |