mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-28 16:55:47 +08:00
14 lines
371 B
Ruby
Vendored
14 lines
371 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
class MoveTriggersToFields < ActiveRecord::Migration[6.1]
|
|
def change
|
|
add_column :discourse_automation_automations, :trigger, :string, null: true
|
|
|
|
add_column :discourse_automation_fields, :target, :string, null: true
|
|
|
|
DB.exec(<<~SQL)
|
|
UPDATE discourse_automation_fields
|
|
SET target = 'script'
|
|
SQL
|
|
end
|
|
end
|