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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Soft-deprecate postgres < 16
Oliver Güntherc99ea1d3d98a
diff --git a/app/views/admin/info.html.erb b/app/views/admin/info.html.erbindex c52712862be..50e35fe2b7c 100644--- a/app/views/admin/info.html.erb+++ b/app/views/admin/info.html.erb@@ -42,54 +42,59 @@ See COPYRIGHT and LICENSE files for more details.<%= call_hook(:view_admin_info_top) %><%= render(AttributeGroups::AttributeGroupComponent.new) do |component|- if Setting.show_product_version?- core_link = linked_sha_reference(OpenProject::VERSION.core_sha, OpenProject::VERSION.core_url)- component.with_attribute(key: t(:label_core_build), value: core_link) if core_link.present?-- product_link = linked_sha_reference(OpenProject::VERSION.product_sha, OpenProject::VERSION.product_url)- component.with_attribute(key: t(:label_product_version), value: product_link) if product_link.present?- end-- component.with_attribute(key: t(:label_core_version), value: OpenProject::Info.versioned_name)- component.with_attribute(key: t(:label_database_version), value: @db_version)-- if display_security_badge_graphic?- content = content_tag :object, nil, data: security_badge_url, type: "image/svg+xml"- content += link_to "",- ::OpenProject::Static::Links[:security_badge_documentation][:href],- title: t(:label_what_is_this),- class: "security-badge--help-icon icon-context icon-help1",- target: "_blank"- component.with_attribute(key: "", value: content)- end-- if OpenProject::Database.version_deprecated?- value = <<~STR.html_safe- <p>- Starting with OpenProject 12.0, PostgreSQL 13 is required to use OpenProject.+ if Setting.show_product_version?+ core_link = linked_sha_reference(OpenProject::VERSION.core_sha, OpenProject::VERSION.core_url)+ component.with_attribute(key: t(:label_core_build), value: core_link) if core_link.present?++ product_link = linked_sha_reference(OpenProject::VERSION.product_sha, OpenProject::VERSION.product_url)+ component.with_attribute(key: t(:label_product_version), value: product_link) if product_link.present?+ end++ component.with_attribute(key: t(:label_core_version), value: OpenProject::Info.versioned_name)+ component.with_attribute(key: t(:label_database_version), value: @db_version)++ if OpenProject::Database.version_deprecated?+ value = render(Primer::Alpha::Banner.new(+ scheme: :warning,+ icon: :alert+ )) do+ <<~STR.html_safe+ Starting with OpenProject 16.0, PostgreSQL 16 is required to use OpenProject.+ Your installation will remain functional with your current database, but anticipate incompatability+ in future releases.<br/>- We have prepared #{static_link_to(:postgres_13_upgrade, label: 'upgrade guides for all installation methods')}.- You can perform the upgrade ahead of the release at any time by following the guides.- </p>- STR- component.with_attribute(key: "Deprecation warning", value:)- end-- if (updated_on = OpenProject::VERSION.updated_on).present?- component.with_attribute(key: t(:label_last_change_on), value: format_time(updated_on))- end- end %>+ We have prepared #{static_link_to(:postgres_17_upgrade, label: 'upgrade guides for all installation methods')}.+ You can perform the upgrade ahead of the next release at any time by following the guides.+ STR+ end+ component.with_attribute(key: "Deprecation warning", value:)+ end++ if display_security_badge_graphic?+ content = content_tag :object, nil, data: security_badge_url, type: "image/svg+xml"+ content += link_to "",+ ::OpenProject::Static::Links[:security_badge_documentation][:href],+ title: t(:label_what_is_this),+ class: "security-badge--help-icon icon-context icon-help1",+ target: "_blank"+ component.with_attribute(key: "", value: content)+ end++ if (updated_on = OpenProject::VERSION.updated_on).present?+ component.with_attribute(key: t(:label_last_change_on), value: format_time(updated_on))+ end+end %><%= render(AttributeGroups::AttributeGroupComponent.new) do |component|- component.with_header(title: I18n.t(:label_system))-- @checklist.each do |label, result|- aria_label = result ? t(:general_text_Yes) : t(:general_text_No)- icon = result ? "check-circle-fill" : "circle"- value = render Primer::Beta::Octicon.new(icon:, "aria-label": aria_label)- component.with_attribute(key: I18n.t(label), value:)- end- end %>+ component.with_header(title: I18n.t(:label_system))++ @checklist.each do |label, result|+ aria_label = result ? t(:general_text_Yes) : t(:general_text_No)+ icon = result ? "check-circle-fill" : "circle"+ value = render Primer::Beta::Octicon.new(icon:, "aria-label": aria_label)+ component.with_attribute(key: I18n.t(label), value:)+ end+end %><% @storage_information.each_with_index do |(_, entries), i| %><%=diff --git a/config/static_links.yml b/config/static_links.ymlindex 5d696f9be64..3b398f6891e 100644--- a/config/static_links.yml+++ b/config/static_links.yml@@ -42,6 +42,8 @@ postgres_migration:label: :homescreen.links.postgres_migrationpostgres_13_upgrade:href: https://www.openproject.org/docs/installation-and-operations/misc/migration-to-postgresql13/+postgres_17_upgrade:+ href: https://www.openproject.org/docs/installation-and-operations/misc/migration-to-postgresql17/configuration_guide:href: https://www.openproject.org/docs/installation-and-operations/configuration/label: links.configuration_guidediff --git a/lib_static/open_project/database.rb b/lib_static/open_project/database.rbindex 6f6e36e460f..cea2780c0c6 100644--- a/lib_static/open_project/database.rb+++ b/lib_static/open_project/database.rb@@ -81,7 +81,7 @@ module OpenProject### Determine whether the current version is deprecateddef self.version_deprecated?- !version_matches?(130000)+ !version_matches?(160000)end##