mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-02-16 16:34:43 +00:00
DEV: Fix mismatched column types (#240)
The primary key is usually a bigint column, but the foreign key columns are usually of integer type. This can lead to issues when joining these columns due to mismatched types and different value ranges.
This commit is contained in:
parent
eecb17698f
commit
f47400a9b1
11
db/migrate/20241009160105_alter_customer_id_to_bigint.rb
Normal file
11
db/migrate/20241009160105_alter_customer_id_to_bigint.rb
Normal file
@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AlterCustomerIdToBigint < ActiveRecord::Migration[7.1]
|
||||
def up
|
||||
change_column :discourse_subscriptions_subscriptions, :customer_id, :bigint
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user