Skip to content

unable to generate migration manually after generating domain from tables #585

@aikomastboom

Description

@aikomastboom

Versions

  • ash 3.5.25
  • ash_admin 0.13.11
  • ash_phoenix 2.3.9
  • ash_postgres 2.6.9
  • ash_sql 0.2.84
  • igniter 0.6.10
$ elixir --version
Erlang/OTP 27 [erts-15.2.7] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]

Elixir 1.18.4 (compiled with Erlang/OTP 27)

Operating system

nixos

Current Behavior

> mix ash_postgres.gen.resources XIt.Authorization --no-migrations --tables roles,role_policies,policies,policy_groups
...
> mix ash_postgres.generate_migrations --domains XIt.Authorization --name xit_authorization
No changes detected, so no migrations or snapshots have been created.

sidenote: I tried this because running mix ash_postgres.gen.resources multiple times generates non unique migration names. causing duplicate migration exceptions when run.

Reproduction

see above

Expected Behavior

expected changes to be detected and a unique migration to be generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions