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

[56769] Migrate queries with timeline to Gantt module

Christophe Bliard2cc12167ed11
diff --git a/db/migrate/20240930122522_change_view_of_queries_with_timeline_to_gantt_again.rb b/db/migrate/20240930122522_change_view_of_queries_with_timeline_to_gantt_again.rb
new file mode 100644
index 00000000000..dc138f71291
--- /dev/null
+++ b/db/migrate/20240930122522_change_view_of_queries_with_timeline_to_gantt_again.rb
@@ -0,0 +1,16 @@
+require_relative "20231201085450_change_view_of_queries_with_timeline_to_gantt"
+
+# Inherit from the original migration `ChangeViewOfQueriesWithTimelineToGantt`
+# to avoid duplicating it.
+#
+# The original migration was fine, but it was applied too early: in OpenProject
+# 13.2.0 the migration would already have been run and it was still possible to
+# create Gantt queries inside the work packages module. Such queries were not
+# migrated.
+#
+# This was registered as bug #56769.
+#
+# This migration runs the original migration again to ensure all queries
+# displayed as Gantt charts are displayed in the right module.
+class ChangeViewOfQueriesWithTimelineToGanttAgain < ChangeViewOfQueriesWithTimelineToGantt
+end