Commits

jplang  committed 552ae79

indexes added

  • Participants
  • Parent commits f60df70

Comments (0)

Files changed (1)

File redmine/db/migrate/001_setup.rb

       t.column "title", :string, :limit => 60, :default => "", :null => false
       t.column "description", :text, :default => ""
       t.column "created_on", :timestamp
-    end
+    end
+    
+    add_index "documents", ["project_id"], :name => "documents_project_id"
   
     create_table "enumerations", :force => true do |t|
       t.column "opt", :string, :limit => 4, :default => "", :null => false
     create_table "issue_categories", :force => true do |t|
       t.column "project_id", :integer, :default => 0, :null => false
       t.column "name", :string, :limit => 30, :default => "", :null => false
-    end
+    end
+    
+    add_index "issue_categories", ["project_id"], :name => "issue_categories_project_id"
   
     create_table "issue_histories", :force => true do |t|
       t.column "issue_id", :integer, :default => 0, :null => false
       t.column "description", :text, :default => "", :null => false
       t.column "author_id", :integer, :default => 0, :null => false
       t.column "created_on", :timestamp
-    end
+    end
+    
+    add_index "news", ["project_id"], :name => "news_project_id"
   
     create_table "permissions", :force => true do |t|
       t.column "controller", :string, :limit => 30, :default => "", :null => false
       t.column "effective_date", :date, :null => false
       t.column "created_on", :timestamp
       t.column "updated_on", :timestamp
-    end
+    end
+    
+    add_index "versions", ["project_id"], :name => "versions_project_id"
   
     create_table "workflows", :force => true do |t|
       t.column "tracker_id", :integer, :default => 0, :null => false