Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- == AddMissingAttachableJournals: migrating ===================================
- -- Add missing attachable journals
- rake aborted!
- An error has occurred, all later migrations canceled:
- Mysql2::Error: Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=': SELECT * FROM (
- SELECT a.container_id AS journaled_id, a.container_type AS journaled_type, a.id AS attachment_id, a.filename, MAX(aj.id) AS aj_id, MAX(j.version) AS last_version
- FROM attachments AS a JOIN journals AS j
- ON (a.container_id = j.journable_id AND a.container_type = j.journable_type) LEFT JOIN attachable_journals AS aj
- ON (a.id = aj.attachment_id)
- GROUP BY a.container_id, a.container_type, a.id, a.filename
- ) AS tmp
- WHERE aj_id IS NULL
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `block in execute'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `execute'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/mysql2_adapter.rb:213:in `execute'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `exec_query'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/mysql2_adapter.rb:226:in `select'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:466:in `block in method_missing'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:438:in `block in say_with_time'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:438:in `say_with_time'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:458:in `method_missing'
- /home/openproject/openproject/db/migrate/migration_utils/attachable_utils.rb:89:in `missing_attachments'
- /home/openproject/openproject/db/migrate/migration_utils/attachable_utils.rb:41:in `add_missing_attachable_journals'
- /home/openproject/openproject/db/migrate/20131018134545_add_missing_attachable_journals.rb:38:in `block in up'
- /home/openproject/openproject/db/migrate/migration_utils/utils.rb:37:in `block (2 levels) in say_with_time_silently'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:446:in `suppress_messages'
- /home/openproject/openproject/db/migrate/migration_utils/utils.rb:36:in `block in say_with_time_silently'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:438:in `block in say_with_time'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:438:in `say_with_time'
- /home/openproject/openproject/db/migrate/migration_utils/utils.rb:35:in `say_with_time_silently'
- /home/openproject/openproject/db/migrate/20131018134545_add_missing_attachable_journals.rb:37:in `up'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:410:in `block (2 levels) in migrate'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:410:in `block in migrate'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:389:in `migrate'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:528:in `migrate'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:720:in `block (2 levels) in migrate'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:777:in `call'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:777:in `ddl_transaction'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:719:in `block in migrate'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:700:in `each'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:700:in `migrate'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:570:in `up'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:551:in `migrate'
- /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/railties/databases.rake:193:in `block (2 levels) in <top (required)>'
- Tasks: TOP => db:migrate
- (See full trace by running task with --trace)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement