Advertisement
Guest User

Untitled

a guest
May 31st, 2014
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.70 KB | None | 0 0
  1. ==  AddMissingAttachableJournals: migrating ===================================
  2. -- Add missing attachable journals
  3. rake aborted!
  4. An error has occurred, all later migrations canceled:
  5.  
  6. Mysql2::Error: Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=':         SELECT * FROM (
  7.           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
  8.           FROM attachments AS a JOIN journals AS j
  9.             ON (a.container_id = j.journable_id AND a.container_type = j.journable_type) LEFT JOIN attachable_journals AS aj
  10.             ON (a.id = aj.attachment_id)
  11.           GROUP BY a.container_id, a.container_type, a.id, a.filename
  12.           ) AS tmp
  13.         WHERE aj_id IS NULL
  14. /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'
  15. /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'
  16. /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'
  17. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  18. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
  19. /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'
  20. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/mysql2_adapter.rb:213:in `execute'
  21. /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'
  22. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/mysql2_adapter.rb:226:in `select'
  23. /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'
  24. /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'
  25. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:466:in `block in method_missing'
  26. /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'
  27. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:438:in `say_with_time'
  28. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:458:in `method_missing'
  29. /home/openproject/openproject/db/migrate/migration_utils/attachable_utils.rb:89:in `missing_attachments'
  30. /home/openproject/openproject/db/migrate/migration_utils/attachable_utils.rb:41:in `add_missing_attachable_journals'
  31. /home/openproject/openproject/db/migrate/20131018134545_add_missing_attachable_journals.rb:38:in `block in up'
  32. /home/openproject/openproject/db/migrate/migration_utils/utils.rb:37:in `block (2 levels) in say_with_time_silently'
  33. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:446:in `suppress_messages'
  34. /home/openproject/openproject/db/migrate/migration_utils/utils.rb:36:in `block in say_with_time_silently'
  35. /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'
  36. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:438:in `say_with_time'
  37. /home/openproject/openproject/db/migrate/migration_utils/utils.rb:35:in `say_with_time_silently'
  38. /home/openproject/openproject/db/migrate/20131018134545_add_missing_attachable_journals.rb:37:in `up'
  39. /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'
  40. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:410:in `block in migrate'
  41. /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'
  42. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:389:in `migrate'
  43. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:528:in `migrate'
  44. /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'
  45. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:777:in `call'
  46. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:777:in `ddl_transaction'
  47. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:719:in `block in migrate'
  48. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:700:in `each'
  49. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:700:in `migrate'
  50. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:570:in `up'
  51. /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/migration.rb:551:in `migrate'
  52. /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)>'
  53. Tasks: TOP => db:migrate
  54. (See full trace by running task with --trace)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement