summaryrefslogtreecommitdiffstats
path: root/db/migrate/076_allow_null_position.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-23 17:38:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-23 17:38:38 +0000
commit191a4a61f15141baf8620d6ecf6c27495b6dbba7 (patch)
treeb06dca3bea93cba031c497651e4ba7fe8ce95e58 /db/migrate/076_allow_null_position.rb
parent1e0045e69bb5ae0787d207fa9b65163231b737b7 (diff)
downloadredmine-191a4a61f15141baf8620d6ecf6c27495b6dbba7.tar.gz
redmine-191a4a61f15141baf8620d6ecf6c27495b6dbba7.zip
First db:migrate fails with SQLServer (undefined method type for nil class in sqlserver adapter).
git-svn-id: http://svn.redmine.org/redmine/trunk@13645 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/076_allow_null_position.rb')
-rw-r--r--db/migrate/076_allow_null_position.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/076_allow_null_position.rb b/db/migrate/076_allow_null_position.rb
index ece0370db..afb93810a 100644
--- a/db/migrate/076_allow_null_position.rb
+++ b/db/migrate/076_allow_null_position.rb
@@ -1,5 +1,7 @@
class AllowNullPosition < ActiveRecord::Migration
def self.up
+ Enumeration.reset_column_information
+
# removes the 'not null' constraint on position fields
change_column :issue_statuses, :position, :integer, :default => 1, :null => true
change_column :roles, :position, :integer, :default => 1, :null => true