mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-03-06 09:29:12 +00:00
DEV: Fix mismatched column types (#329)
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
da1c99ec2d
commit
b43d82d5d6
11
db/migrate/20241009161603_alter_query_id_to_bigint.rb
Normal file
11
db/migrate/20241009161603_alter_query_id_to_bigint.rb
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
class AlterQueryIdToBigint < ActiveRecord::Migration[7.1]
|
||||||
|
def up
|
||||||
|
change_column :data_explorer_query_groups, :query_id, :bigint
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
raise ActiveRecord::IrreversibleMigration
|
||||||
|
end
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user