elixir-error-tracker / error-tracker

🐛 An Elixir-based built-in error reporting and tracking solution
https://hex.pm/packages/error_tracker
Apache License 2.0
383 stars 17 forks source link

Migration error during setup #60

Closed petrus-jvrensburg closed 2 months ago

petrus-jvrensburg commented 2 months ago

While following the setup instructions, I ran into this error that's blocking me:

% mix ecto.migrate

21:47:50.206 [info] == Running 20240822014641 MyApp.Repo.Migrations.AddErrorTracker.up/0 forward

21:47:50.229 [info] execute "CREATE SCHEMA IF NOT EXISTS error_tracker"

21:47:50.231 [info] create table error_tracker.error_tracker_meta

21:47:50.239 [info] create table error_tracker.error_tracker_errors

21:47:50.247 [info] create index error_tracker.error_tracker_errors_fingerprint_index

21:47:50.248 [info] create table error_tracker.error_tracker_occurrences
** (Postgrex.Error) ERROR 42703 (undefined_column) column "uuid" referenced in foreign key constraint does not exist
    (ecto_sql 3.11.3) lib/ecto/adapters/sql.ex:1054: Ecto.Adapters.SQL.raise_sql_call_error/1
    (elixir 1.17.2) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
    (ecto_sql 3.11.3) lib/ecto/adapters/sql.ex:1161: Ecto.Adapters.SQL.execute_ddl/4
    (ecto_sql 3.11.3) lib/ecto/migration/runner.ex:348: Ecto.Migration.Runner.log_and_execute_ddl/3
    (elixir 1.17.2) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
    (elixir 1.17.2) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
    (ecto_sql 3.11.3) lib/ecto/migration/runner.ex:311: Ecto.Migration.Runner.perform_operation/3
    (stdlib 6.0) timer.erl:590: :timer.tc/2
crbelaus commented 2 months ago

Closing as duplicate of #59