SQLServer does not support changing the type of an indexed column (#12713).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11097 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3218b8204c
commit
9c561f9124
|
@ -1,9 +1,13 @@
|
||||||
class ChangeChangesetsRevisionToString < ActiveRecord::Migration
|
class ChangeChangesetsRevisionToString < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
||||||
|
remove_index :changesets, :name => :changesets_repos_rev
|
||||||
change_column :changesets, :revision, :string, :null => false
|
change_column :changesets, :revision, :string, :null => false
|
||||||
|
add_index :changesets, [:repository_id, :revision], :unique => true, :name => :changesets_repos_rev
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
|
remove_index :changesets, :name => :changesets_repos_rev
|
||||||
change_column :changesets, :revision, :integer, :null => false
|
change_column :changesets, :revision, :integer, :null => false
|
||||||
|
add_index :changesets, [:repository_id, :revision], :unique => true, :name => :changesets_repos_rev
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue