|
|
|
@ -3,10 +3,10 @@ class WorkPackageIndices < ActiveRecord::Migration |
|
|
|
|
# drop obsolete fields |
|
|
|
|
remove_column :work_packages, :planning_element_status_comment |
|
|
|
|
remove_column :work_packages, :planning_element_status_id |
|
|
|
|
remove_column :work_packages, :sti_type |
|
|
|
|
remove_column :work_package_journals, :planning_element_status_comment |
|
|
|
|
remove_column :work_package_journals, :planning_element_status_id |
|
|
|
|
remove_column :work_packages, :sti_type |
|
|
|
|
|
|
|
|
|
remove_column :work_package_journals, :sti_type |
|
|
|
|
|
|
|
|
|
add_index :work_packages, :type_id |
|
|
|
|
add_index :work_packages, :status_id |
|
|
|
@ -24,6 +24,9 @@ class WorkPackageIndices < ActiveRecord::Migration |
|
|
|
|
add_column :work_packages, :planning_element_status_comment, :string |
|
|
|
|
add_column :work_packages, :planning_element_status_id, :integer |
|
|
|
|
add_column :work_packages, :sti_type, :string |
|
|
|
|
add_column :work_package_journals, :planning_element_status_comment, :string |
|
|
|
|
add_column :work_package_journals, :planning_element_status_id, :integer |
|
|
|
|
add_column :work_package_journals, :sti_type, :string |
|
|
|
|
|
|
|
|
|
remove_index :work_packages, :type_id |
|
|
|
|
remove_index :work_packages, :status_id |
|
|
|
|