Skip to content

Commit b43d82d

Browse files
authored
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.
1 parent da1c99e commit b43d82d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# frozen_string_literal: true
2+
3+
class AlterQueryIdToBigint < ActiveRecord::Migration[7.1]
4+
def up
5+
change_column :data_explorer_query_groups, :query_id, :bigint
6+
end
7+
8+
def down
9+
raise ActiveRecord::IrreversibleMigration
10+
end
11+
end

0 commit comments

Comments
 (0)