]> source.dussan.org Git - redmine.git/commitdiff
Fixed error on migration 85 with Oracle (index name can not be more than 30 character...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 15 Jan 2008 20:40:59 +0000 (20:40 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 15 Jan 2008 20:40:59 +0000 (20:40 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1069 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb

index 523cf091b80def5e7c31ce42af3aaaef78aa9c8b..a59135be0123102a1f9090968a9763e2c6430a49 100644 (file)
@@ -1,9 +1,9 @@
 class AddRoleTrackerOldStatusIndexToWorkflows < ActiveRecord::Migration
   def self.up
-    add_index :workflows, [:role_id, :tracker_id, :old_status_id], :name => :workflows_role_tracker_old_status
+    add_index :workflows, [:role_id, :tracker_id, :old_status_id], :name => :wkfs_role_tracker_old_status
   end
 
   def self.down
-    remove_index :workflows, :name => :workflows_role_tracker_old_status
+    remove_index(:workflows, :name => :wkfs_role_tracker_old_status); rescue
   end
 end