Skip to content

Commit 8adadf7

Browse files
authored
Add primary_key to schema_migrations schema (#555)
The `primary_key` was missing from the schema, causing the reflection to return an empty list, when in fact there is a primary key set database-side.
1 parent b121291 commit 8adadf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ecto/migration/schema_migration.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule Ecto.Migration.SchemaMigration do
88

99
@primary_key false
1010
schema "schema_migrations" do
11-
field :version, :integer
11+
field :version, :integer, primary_key: true
1212
timestamps updated_at: false
1313
end
1414

0 commit comments

Comments
 (0)