`mix ash_postgres.generate_migrations` key `:table` not found

mix ash_postgres.generate_migrations

Extension Migrations:
No extensions to install

Generating Tenant Migrations:

Generating Migrations:
** (KeyError) key :table not found in: nil. If you are using the dot syntax, such as map.field, make sure the left-hand side of the dot is a map
(ash_postgres 1.3.19) lib/migration_generator/migration_generator.ex:127: anonymous fn/2 in AshPostgres.MigrationGenerator.find_references_primary_key/2
(elixir 1.14.4) lib/enum.ex:4239: Enum.find_value_list/3
(ash_postgres 1.3.19) lib/migration_generator/migration_generator.ex:109: anonymous fn/2 in AshPostgres.MigrationGenerator.add_references_primary_key/2
(elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
(elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
(ash_postgres 1.3.19) lib/migration_generator/migration_generator.ex:100: AshPostgres.MigrationGenerator.add_references_primary_key/2
(ash_postgres 1.3.19) lib/migration_generator/migration_generator.ex:503: anonymous fn/2 in AshPostgres.MigrationGenerator.deduplicate_snapshots/4
(elixir 1.14.4) lib/map.ex:258: Map.do_map/2
make: *** [migrations] Error 1
mix ash_postgres.generate_migrations

Extension Migrations:
No extensions to install

Generating Tenant Migrations:

Generating Migrations:
** (KeyError) key :table not found in: nil. If you are using the dot syntax, such as map.field, make sure the left-hand side of the dot is a map
(ash_postgres 1.3.19) lib/migration_generator/migration_generator.ex:127: anonymous fn/2 in AshPostgres.MigrationGenerator.find_references_primary_key/2
(elixir 1.14.4) lib/enum.ex:4239: Enum.find_value_list/3
(ash_postgres 1.3.19) lib/migration_generator/migration_generator.ex:109: anonymous fn/2 in AshPostgres.MigrationGenerator.add_references_primary_key/2
(elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
(elixir 1.14.4) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
(ash_postgres 1.3.19) lib/migration_generator/migration_generator.ex:100: AshPostgres.MigrationGenerator.add_references_primary_key/2
(ash_postgres 1.3.19) lib/migration_generator/migration_generator.ex:503: anonymous fn/2 in AshPostgres.MigrationGenerator.deduplicate_snapshots/4
(elixir 1.14.4) lib/map.ex:258: Map.do_map/2
make: *** [migrations] Error 1
6 Replies
ZachDaniel
ZachDaniel3y ago
Try main ash_postgres main
\ ឵឵឵
\ ឵឵឵OP3y ago
Still getting the error On 86e02d2fe908b9011b8e7ef7de141d83202deedc
ZachDaniel
ZachDaniel3y ago
Can you open an issue on ash_postgres?
\ ឵឵឵
\ ឵឵឵OP3y ago
Sure
\ ឵឵឵
\ ឵឵឵OP3y ago
GitHub
mix ash_postgres.generate_migrations errors out with `key :table ...
Describe the bug Running mix ash_postgres.generate_migrations errors out with key :table not found in: nil. The error: Extension Migrations: No extensions to install Generating Tenant Migrations: G...
ZachDaniel
ZachDaniel3y ago
👍 will look into it shortly I believe I'ved fixed it in main

Did you find this page helpful?