Skip to content

Commit d56a6e1

Browse files
committed
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.
1 parent d6fcc41 commit d56a6e1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

activerecord/test/cases/primary_keys_test.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ def test_composite_primary_key_with_reserved_words
354354
end
355355

356356
def test_composite_primary_key_out_of_order
357-
skip if current_adapter?(:SQLite3Adapter)
358357
assert_equal ["code", "region"], @connection.primary_keys("barcodes_reverse")
359358
end
360359

@@ -376,7 +375,6 @@ def test_collectly_dump_composite_primary_key
376375
end
377376

378377
def test_dumping_composite_primary_key_out_of_order
379-
skip if current_adapter?(:SQLite3Adapter)
380378
schema = dump_table_schema "barcodes_reverse"
381379
assert_match %r{create_table "barcodes_reverse", primary_key: \["code", "region"\]}, schema
382380
end

0 commit comments

Comments
 (0)