Project

General

Profile

Actions

Defect #10320

closed

db migrate "ChangeAttachmentsContainerDefaults" error

Added by Toshi MARUYAMA over 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

trunk r8991 on Ruby 1.9.3-p125

==  ChangeAttachmentsContainerDefaults: migrating =============================
-- change_column(:attachments, :container_id, :integer, {:default=>nil, :null=>true})
   -> 0.2494s
-- change_column(:attachments, :container_type, :string, {:limit=>30, :default=>nil, :null=>true})
   -> 0.4275s
==  ChangeAttachmentsContainerDefaults: migrated (0.6874s) ====================

/home/xxxxxxx/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:167:in `block in non_options': file not found: db:migrate (ArgumentError)
    from /home/xxxxxxx/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:146:in `map!'
    from /home/xxxxxxx/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:146:in `non_options'
    from /home/xxxxxxx/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:207:in `non_options'
    from /home/xxxxxxx/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:52:in `process_args'
    from /home/xxxxxxx/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/minitest/unit.rb:891:in `_run'
    from /home/xxxxxxx/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
    from /home/xxxxxxx/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:21:in `run'
    from /home/xxxxxxx/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
    from /home/xxxxxxx/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
    from /home/xxxxxxx/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'

Rails 3.1.3 and Ruby 1.8.7-p357

==  ChangeAttachmentsContainerDefaults: migrating =============================
-- change_column(:attachments, :container_id, :integer, {:null=>true, :default=>nil})
rake aborted!
An error has occurred, this and all later migrations canceled:

Index name 'temp_index_altered_attachments_on_container_id_and_container_type'
on table 'altered_attachments' is too long; the limit is 64 characters


Related issues

Related to Redmine - Defect #10818: Running rake in test environment causes exceptionClosedToshi MARUYAMA

Actions
Actions

Also available in: Atom PDF