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
remove generated columns for now
Klaus Zanders9435f5e93c5a
diff --git a/db/migrate/20241120103858_add_start_end_times_to_time_entries.rb b/db/migrate/20241120103858_add_start_end_times_to_time_entries.rbindex 46f41356c1a..4d30710e517 100644--- a/db/migrate/20241120103858_add_start_end_times_to_time_entries.rb+++ b/db/migrate/20241120103858_add_start_end_times_to_time_entries.rb@@ -1,36 +1,13 @@class AddStartEndTimesToTimeEntries < ActiveRecord::Migration[7.1]def change- # TODO: Figure out if we need to use any timezone conversion in the generated columns-- # order of changes matter, so we cannot use bulk here- change_table :time_entries do |t| # rubocop:disable Lint/RedundantCopDisableDirective,Rails/BulkChangeTable+ change_table :time_entries, bulk: true do |t|t.integer :start_time, null: truet.integer :end_time, null: true-- t.virtual :start_timestamp,- type: :datetime,- as: "CASE WHEN start_time IS NOT NULL THEN spent_on::timestamp + INTERVAL '1 minute' * start_time ELSE NULL END",- stored: true-- t.virtual :end_timestamp,- type: :datetime,- as: "CASE WHEN end_time IS NOT NULL THEN spent_on::timestamp + INTERVAL '1 minute' * end_time ELSE NULL END",- stored: trueend- change_table :time_entry_journals do |t| # rubocop:disable Lint/RedundantCopDisableDirective,Rails/BulkChangeTable+ change_table :time_entry_journals, bulk: true do |t|t.integer :start_time, null: truet.integer :end_time, null: true-- t.virtual :start_timestamp,- type: :datetime,- as: "CASE WHEN start_time IS NOT NULL THEN spent_on::timestamp + INTERVAL '1 minute' * start_time ELSE NULL END",- stored: true-- t.virtual :end_timestamp,- type: :datetime,- as: "CASE WHEN end_time IS NOT NULL THEN spent_on::timestamp + INTERVAL '1 minute' * end_time ELSE NULL END",- stored: trueendendend