Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use explicit column name for FK references (#62)
The ErrorTracker tables use `id` as the primary key name. This was causing trouble when the client repository was configured to use a different column name for references since it tried to create a foreign key pointing to a non-existing column. This commit explicitly states the referenced column name to avoid this problems. To check this you can create a new Phoenix application that uses the error tracker and add the following configuration to the application repository: ```elixir config :my_app, MyApp.Repo, migration_primary_key: [name: :uuid, type: :binary_id], migration_foreign_key: [column: :uuid, type: :binary_id] ``` Trying this on `main` will raise an error when running the migrations. The error is not present in this branch. Closes #59
- Loading branch information