OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/db/migrate/20211022143726_remove_snaps...

13 lines
275 B

class RemoveSnapshotData < ActiveRecord::Migration[6.1]
def up
execute <<~SQL.squish
UPDATE bcf_viewpoints
SET json_viewpoint = json_viewpoint #- '{snapshot,snapshot_data}';
SQL
end
def down
# removed snapshot data cannot be restored
end
end