ash_postgres icon indicating copy to clipboard operation
ash_postgres copied to clipboard

The PostgreSQL data layer for Ash Framework

Results 28 ash_postgres issues
Sort by recently updated
recently updated
newest added

**Describe the bug** The following custom unique index: ```elixir postgres do # ... custom_indexes do index(["provider", "provider_id"], unique: true, where: "archived_at IS NULL and provider_id IS NOT NULL") end end...

enhancement
good first issue

Right now, collaborating with multiple developers using the migration generator can be cumbersome. You have to remove any generated migrations locally, pull, and then regenerate migrations. This is because snapshots...

enhancement
help wanted

Proposal: Add a `tenant_schema/1` callback to `AshPostgres.Repo` which takes any input from a `tenant: param` and returns a schema string.

enhancement
good first issue

Right now it will silently ignore `references` that don't match a relationship, which is obviously not ideal.

bug
good first issue

### Contributor checklist - [x] Features include unit/acceptance tests

Instead of the bigserial type, we should use `GENERATED BY DEFAULT AS IDENTITY`. For more information, see here: https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_serial We can put this behind an opt-in configuration until the next...

enhancement
good first issue

Recreating the unique_index should happen after the rename action or do both index actions after the rename ``` def down do drop_if_exists unique_index(:access__teams, [:license_key_id], name: "access__teams_license_key_id_index" ) create unique_index(:access__teams, [:idp_entity_id],...

bug

## Is your feature request related to a problem? Please describe. I have a `Message` resource that I would like to delete. I deleted the code and ran the `mix...

enhancement
good first issue

**Describe the bug** Ash Postgres currently allows relating two resources from two different tenants when using attribute strategy and referencing the primary key of the other resource. **To Reproduce** [Here](https://github.com/rbino/ash_postgres/commit/d8f62872e94bb8e7e115d7e24ec715142ffe4142#diff-ee89cab7243923108e4ded2df70b2b46b17b4acbedfadf03af83c35944d4a04cR24)...

bug

**Describe the bug** The `references` config block containing a `polymorphic_on_delete :delete` setting is on the "unexpected" side of the relationship between a resource and a polymorphic resource. If it is...

enhancement