set IndexDefinition#length
This commit is contained in:
parent
b1b66cc389
commit
0f0bd5a001
@ -447,10 +447,11 @@ module ActiveRecord
|
|||||||
if current_index != row[:Key_name]
|
if current_index != row[:Key_name]
|
||||||
next if row[:Key_name] == PRIMARY # skip the primary key
|
next if row[:Key_name] == PRIMARY # skip the primary key
|
||||||
current_index = row[:Key_name]
|
current_index = row[:Key_name]
|
||||||
indexes << IndexDefinition.new(row[:Table], row[:Key_name], row[:Non_unique] == 0, [])
|
indexes << IndexDefinition.new(row[:Table], row[:Key_name], row[:Non_unique] == 0, [], [])
|
||||||
end
|
end
|
||||||
|
|
||||||
indexes.last.columns << row[:Column_name]
|
indexes.last.columns << row[:Column_name]
|
||||||
|
indexes.last.lengths << row[:Sub_part]
|
||||||
end
|
end
|
||||||
indexes
|
indexes
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user