Sha256: 195f1280b2c0dd2abb039b21fda8e1ce6e8c78cbfb3f5c5a1d3e87920bef391a
Contents?: true
Size: 1.18 KB
Versions: 25
Compression:
Stored size: 1.18 KB
Contents
# frozen_string_literal: true Sequel.migration do up do alter_table(:dynflow_execution_plans) do if @db.database_type == :mysql set_column_type :started_at, 'datetime(3)' set_column_type :ended_at, 'datetime(3)' end end alter_table(:dynflow_steps) do if @db.database_type == :mysql set_column_type :started_at, 'datetime(3)' set_column_type :ended_at, 'datetime(3)' end end alter_table(:dynflow_delayed_plans) do if @db.database_type == :mysql set_column_type :start_at, 'datetime(3)' set_column_type :start_before, 'datetime(3)' end end end down do alter_table(:dynflow_steps) do if @db.database_type == :mysql set_column_type :started_at, Time set_column_type :ended_at, Time end end alter_table(:dynflow_steps) do if @db.database_type == :mysql set_column_type :started_at, Time set_column_type :ended_at, Time end end alter_table(:dynflow_delayed_plans) do if @db.database_type == :mysql set_column_type :start_at, Time set_column_type :start_before, Time end end end end
Version data entries
25 entries across 25 versions & 1 rubygems