mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
DEV: Set bigint sequences to start at MAX_INT (#28961)
This helps uncover issues with bigint columns that are joined with int columns. It also introduces a temporary API for plugins to migrate int columns to bigint in test environment to make tests pass.
This commit is contained in:
@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AlterAutomationIdsToBigint < ActiveRecord::Migration[7.1]
|
||||
def up
|
||||
change_column :discourse_automation_fields, :automation_id, :bigint
|
||||
change_column :discourse_automation_pending_automations, :automation_id, :bigint
|
||||
change_column :discourse_automation_pending_pms, :automation_id, :bigint
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user