diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-10-08 13:02:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-10-08 13:02:16 +0000 |
commit | fbafa9579127779531461d684197a9511fb2c50d (patch) | |
tree | 76aa016391c1a186f796c033934845b287c81d30 /redmine | |
parent | dc26a9cd39be4867dfc822cd4da019e478ff1a5f (diff) | |
download | redmine-fbafa9579127779531461d684197a9511fb2c50d.tar.gz redmine-fbafa9579127779531461d684197a9511fb2c50d.zip |
indexes added
git-svn-id: http://redmine.rubyforge.org/svn/trunk@25 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'redmine')
-rw-r--r-- | redmine/db/migrate/001_setup.rb | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/redmine/db/migrate/001_setup.rb b/redmine/db/migrate/001_setup.rb index 00d788bec..ee22c148b 100644 --- a/redmine/db/migrate/001_setup.rb +++ b/redmine/db/migrate/001_setup.rb @@ -80,7 +80,9 @@ class Setup < ActiveRecord::Migration 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
@@ -90,7 +92,9 @@ class Setup < ActiveRecord::Migration 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
@@ -142,7 +146,9 @@ class Setup < ActiveRecord::Migration 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
@@ -211,7 +217,9 @@ class Setup < ActiveRecord::Migration 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
|