From a7e630ff97b9a8047de301a7c17091cbe5ceac75 Mon Sep 17 00:00:00 2001 From: Stefan Luptak Date: Thu, 2 Nov 2023 15:46:14 +0100 Subject: [PATCH] Use bigint type for entity_id in the create_version_table.exs example Since the `id` column created by default by Ecto is not an `integer` but a `bigint`, it should be the same way in the example to prevent confusion and problems. The `field` definition in the schema itself should still be `integer`, only the migration type is changed. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 81e2128..3b9977d 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ defmodule MyApp.Migrations.AddVersions do add :patch, :binary # supports UUID and other types as well - add :entity_id, :integer + add :entity_id, :bigint # name of the table the entity is in add :entity_schema, :string