Project

General

Profile

Actions

Defect #24402

closed

sqlserver2014: db:migrate failed

Added by 刘 彤彤 about 8 years ago. Updated over 4 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

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

screensnap.png (22.9 KB) screensnap.png error 刘 彤彤, 2016-11-21 04:04

Related issues

Related to Redmine - Patch #31230: Fix: migration fails in MS SQL-ServerClosed

Actions
Actions #1

Updated by Toshi MARUYAMA about 8 years ago

  • Status changed from New to Needs feedback

Please post full log with --trace option.

Actions #2

Updated by 刘 彤彤 about 8 years ago

20160404080304 ForcePasswordResetDuringSetup: migrating ==================
20160404080304 ForcePasswordResetDuringSetup: migrated (0.0126s) ========= 20160416072926 RemovePositionDefaults: migrating =========================
-- change_column("boards", :position, :integer, {:default=>nil})
> 0.0541s
-
change_column("custom_fields", :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]#

Actions #3

Updated by 刘 彤彤 about 8 years ago

change to mysql,db:migrate is success AND It works fine。but sqlserver2014 is failed。

Actions #4

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
Actions #5

Updated by 刘 彤彤 about 8 years ago

hao to fix it?

Actions #6

Updated by Go MAEDA over 4 years ago

  • Related to Patch #31230: Fix: migration fails in MS SQL-Server added
Actions #7

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.

Actions

Also available in: Atom PDF