Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Migrate `project_journals` and `projects` to include status columns

Aaron Contreras604e1b212b99
diff --git a/db/migrate/20230426175021_add_status_columns_to_projects.rb b/db/migrate/20230426175021_add_status_columns_to_projects.rb
new file mode 100644
index 00000000000..3f6715f00da
--- /dev/null
+++ b/db/migrate/20230426175021_add_status_columns_to_projects.rb
@@ -0,0 +1,8 @@
+class AddStatusColumnsToProjects < ActiveRecord::Migration[7.0]
+ def change
+ change_table :projects, bulk: true do |table|
+ table.integer :status_code
+ table.text :status_explanation
+ end
+ end
+end
diff --git a/db/migrate/20230426175218_add_status_columns_to_project_journals.rb b/db/migrate/20230426175218_add_status_columns_to_project_journals.rb
new file mode 100644
index 00000000000..e8b4bfa5e3f
--- /dev/null
+++ b/db/migrate/20230426175218_add_status_columns_to_project_journals.rb
@@ -0,0 +1,8 @@
+class AddStatusColumnsToProjectJournals < ActiveRecord::Migration[7.0]
+ def change
+ change_table :project_journals, bulk: true do |table|
+ table.integer :status_code
+ table.text :status_explanation
+ end
+ end
+end