Defect #24402
closedsqlserver2014: db:migrate failed
0%
Description
Installing Redmine-3.3.1、ruby 2.3.1p112、sqlserver2014.
run commond:db:migrate
errors:
undefine method 'type' for nil:NilClass in/opt/redmine-3.3.1/db/migrate/20160416072926_remove_position_defaults.rb
hao to fixed it?
I'm delete 20160416072926_remove_position_defaults.rb filed from the redmine-3.3.1,db:migrate is success AND It works fine.
Files
Related issues
Updated by Toshi MARUYAMA about 8 years ago
- Status changed from New to Needs feedback
Please post full log with --trace option.
Updated by 刘 彤彤 about 8 years ago
- File screensnap.png screensnap.png added
20160404080304 ForcePasswordResetDuringSetup: migrated (0.0126s) ========= 20160416072926 RemovePositionDefaults: migrating =========================
-- change_column("boards", :position, :integer, {:default=>nil})
-
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
undefined method `type' for nil:NilClass/opt/redmine-3.3.1/db/migrate/20160416072926_remove_position_defaults.rb:4:in `block in up'
/opt/redmine-3.3.1/db/migrate/20160416072926_remove_position_defaults.rb:3:in `each'
/opt/redmine-3.3.1/db/migrate/20160416072926_remove_position_defaults.rb:3:in `up'
NoMethodError: undefined method `type' for nil:NilClass
/opt/redmine-3.3.1/db/migrate/20160416072926_remove_position_defaults.rb:4:in `block in up'
/opt/redmine-3.3.1/db/migrate/20160416072926_remove_position_defaults.rb:3:in `each'
/opt/redmine-3.3.1/db/migrate/20160416072926_remove_position_defaults.rb:3:in `up'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
[root@redhat redmine-3.3.1]#
Updated by 刘 彤彤 about 8 years ago
change to mysql,db:migrate is success AND It works fine。but sqlserver2014 is failed。
Updated by Toshi MARUYAMA about 8 years ago
- Subject changed from db:migrate failed to sqlserver2014: db:migrate failed
- Category set to Database
- Status changed from Needs feedback to New
Updated by Go MAEDA over 4 years ago
- Related to Patch #31230: Fix: migration fails in MS SQL-Server added
Updated by Go MAEDA over 4 years ago
- Status changed from New to Closed
- Resolution set to Fixed
The issue should have already been fixed by #30285. See #31230#note-4 for the detail.