mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
SQLite 3.7.16+ returns the order of the primary key columns
https://www.sqlite.org/releaselog/3_7_16.html > 9 Enhance the PRAGMA table_info command so that the "pk" column is an increasing integer to show the order of columns in the primary key. Rails 6 supports SQLite 3.8 then we can remove this skip condition.
This commit is contained in:
parent
d6fcc419fe
commit
d56a6e19c4
1 changed files with 0 additions and 2 deletions
|
@ -354,7 +354,6 @@ class CompositePrimaryKeyTest < ActiveRecord::TestCase
|
|||
end
|
||||
|
||||
def test_composite_primary_key_out_of_order
|
||||
skip if current_adapter?(:SQLite3Adapter)
|
||||
assert_equal ["code", "region"], @connection.primary_keys("barcodes_reverse")
|
||||
end
|
||||
|
||||
|
@ -376,7 +375,6 @@ class CompositePrimaryKeyTest < ActiveRecord::TestCase
|
|||
end
|
||||
|
||||
def test_dumping_composite_primary_key_out_of_order
|
||||
skip if current_adapter?(:SQLite3Adapter)
|
||||
schema = dump_table_schema "barcodes_reverse"
|
||||
assert_match %r{create_table "barcodes_reverse", primary_key: \["code", "region"\]}, schema
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue