##// END OF EJS Templates
SQLServer does not support changing the type of an indexed column (#12713)....
Jean-Philippe Lang -
r10867:9c561f912435
parent child
Show More
@@ -1,9 +1,13
1 1 class ChangeChangesetsRevisionToString < ActiveRecord::Migration
2 2 def self.up
3 remove_index :changesets, :name => :changesets_repos_rev
3 4 change_column :changesets, :revision, :string, :null => false
5 add_index :changesets, [:repository_id, :revision], :unique => true, :name => :changesets_repos_rev
4 6 end
5 7
6 8 def self.down
9 remove_index :changesets, :name => :changesets_repos_rev
7 10 change_column :changesets, :revision, :integer, :null => false
11 add_index :changesets, [:repository_id, :revision], :unique => true, :name => :changesets_repos_rev
8 12 end
9 13 end
General Comments 0
You need to be logged in to leave comments. Login now