Defect #10320
db migrate "ChangeAttachmentsContainerDefaults" error
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | Database | |||
| Target version: | - | |||
| Affected version: | 1.4.4 | Resolution: | Fixed |
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
History
#1 Updated by Jean-Philippe Lang about 1 year ago
Toshi MARUYAMA wrote:
trunk r8991 on Ruby 1.9.3-p125
[...]
Not related to this migration. Even if you remove it, you'll get the same error et the end of db:migrate.
The stack trace is odd and the migration is actually executed fine. I can't see the problem in Redmine.
Rails 3.1.3 and Ruby 1.8.7-p357
[...]
Fixed in r8996, although it should be fixed on the rails side.
#2 Updated by Etienne Massip about 1 year ago
- Category set to Database
#3 Updated by Etienne Massip 10 months ago
- Target version set to 2.0.4
- Affected version changed from devel to 2.0.3
#4 Updated by Toshi MARUYAMA 10 months ago
- Affected version changed from 2.0.3 to 1.4.4
#5 Updated by Toshi MARUYAMA 10 months ago
- Subject changed from db migrate "ChangeAttachmentsContainerDefaults" error on SQLite3 1.3.5 to db migrate "ChangeAttachmentsContainerDefaults" error
#6 Updated by Toshi MARUYAMA 10 months ago
- Status changed from New to Closed
- Target version deleted (
2.0.4) - Resolution set to Fixed
Description has two problems.
First problem is duplicate with #10818.
#7 Updated by Lawrence Krubner 3 months ago
I am still getting this error:
Rails 3.2.11
Ruby 1.9.3
Centos 6.3
Redmine 2.2 from SVN on February 05, 2013
#8 Updated by Toshi MARUYAMA 3 months ago
Lawrence Krubner wrote:
I am still getting this error:
Description has two problems.
Which error?