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
migration to add numeric collation for column name of versions table
Ivan Kuchin6edcfea12920
diff --git a/db/migrate/20240920152544_set_versions_name_collation.rb b/db/migrate/20240920152544_set_versions_name_collation.rbnew file mode 100644index 00000000000..3a2da158eb9--- /dev/null+++ b/db/migrate/20240920152544_set_versions_name_collation.rb@@ -0,0 +1,13 @@+class SetVersionsNameCollation < ActiveRecord::Migration[7.1]+ def up+ execute <<-SQL.squish+ CREATE COLLATION IF NOT EXISTS versions_name (provider = icu, locale = 'en-u-kn-true');+ SQL++ change_column :versions, :name, :string, collation: "versions_name"+ end++ def down+ change_column :versions, :name, :string+ end+end