Commit graph

72 commits

Author SHA1 Message Date
Zach Daniel
973a73e18c fix: handle name -> source change in more places 2022-02-14 16:30:25 -05:00
Zach Daniel
6c20f593b0 fix: handle name -> source rename in operation ordering 2022-02-14 15:38:16 -05:00
Zach Daniel
97bd185c17 feat: support cast_in_query?/0 and source 2022-02-14 11:39:50 -05:00
Zach Daniel
e2bd3c5aec improvement: support access syntax 2022-02-07 16:48:36 -05:00
Zach Daniel
2258e6f749 all green on dynamic refactor 2022-02-07 15:35:18 -05:00
kernel-io
4a1f1880ff
bugfix: ensure repo is compiled (#80) 2021-12-21 14:19:33 -05:00
Zach Daniel
af97c549c5 improvement: add custom migration types, and repo level override 2021-11-10 04:18:36 -05:00
Michael St Clair
4307415cca
handle when no opts are passed to custom index (#72) 2021-09-25 20:02:00 -04:00
Zach Daniel
3f0aa74db2 fix: remove unused default value 2021-09-21 15:28:45 -04:00
Zach Daniel
b9dfc20bf6 fix: use proper identity names for polymorphic resources 2021-09-21 15:10:25 -04:00
Zach Daniel
b2350a5d6b fix: set identity names propertly for polymorphic resources 2021-09-21 13:41:58 -04:00
Zach Daniel
b9afd37eb7 fix: handle nil values in snapshots better 2021-09-20 20:48:19 -04:00
Zach Daniel
9204ec0121 fix: remove unused field from snapshot parsing 2021-09-20 20:40:13 -04:00
Zach Daniel
be1fbd6137 improvement: support custom_indexes 2021-09-20 16:38:36 -04:00
Zach Daniel
981f6c8ccd improvement!: update to latest ash/ecto versions w/ parameterized types 2021-09-13 12:58:23 -04:00
Zach Daniel
e6ec25ec64 improvement: info on migration generator output 2021-07-27 18:35:14 -04:00
Zach Daniel
95be84f734 improvement: --name when generating migrations 2021-07-08 14:52:53 -04:00
Zach Daniel
ddbd43b611 fix: fix migrator mix tasks w/ only/except tenants
fix: drop foreign keys after table create properly
2021-07-08 13:35:16 -04:00
Zach Daniel
7f5a56d9bd improvement: add mix ash_postgres.rollback
fix: drop foreign keys before dropping table
2021-07-08 11:37:33 -04:00
Zach Daniel
da9d24c96f fix: sort references only after other same-table ops 2021-06-08 17:41:35 -04:00
Zach Daniel
29956794ff improvement: update to latest ash
chore: add aggregate test
chore: small experimental interface change
2021-05-06 17:37:29 -04:00
zimt28
fe7d188e26
improvement: Preserve attribute order (#63) 2021-04-28 17:23:24 -04:00
Zach Daniel
b7efe6e078 improvement: custom index names
fix: simpler index names
2021-04-27 17:16:56 -04:00
Zach Daniel
ae3f2c0b07 fix: sort index operations last 2021-04-27 16:08:16 -04:00
zimt28
eba0878895
fix: Remove duplicate file extension (#60) 2021-04-27 10:52:47 -04:00
Zach Daniel
8bcc2a16eb fix: stringify struct defaults in migration generator 2021-04-26 13:21:57 -04:00
zimt28
04190e18e2
fix: properly comment out extension uninstallation code 2021-04-25 20:29:05 -04:00
Zach Daniel
e9222bebfa fix: include type in references (because it is *not* automatic) 2021-04-19 17:28:00 -04:00
Zach Daniel
1f6621b852 feat: add check_constraints, both for validation and migrations 2021-04-19 14:26:41 -04:00
Zach Daniel
aa49b0f4ea chore: fix default foreign key name 2021-04-13 12:38:39 -04:00
Zach Daniel
250f8b195c fix: always drop constraints before modifying
fix: properly compare old references and new references
2021-04-13 12:19:50 -04:00
Zach Daniel
4417eaa6a1 improvement: default integers to :bigint
fix: don't explicitly set type in `references`
2021-04-12 14:13:23 -04:00
Zach Daniel
2d0245e368 chore: open up some migration APIs for experimentation purposes 2021-04-04 16:09:26 -04:00
Zach Daniel
4d2d29d976 feat: support configuring references
feat: support configuring polymorphic references
feat: support `distinct` Ash queries
2021-04-01 02:19:30 -04:00
Zach Daniel
e2eb2d4483 improvement: only count resources w/ create action for nullability 2021-03-29 09:27:18 -04:00
Zach Daniel
2280b1e439 fix: reroute Ash.Type.UUID to :uuid in migrations 2021-03-21 13:23:30 -04:00
Zach Daniel
830a4ca6ee improvement: consistent foreign key names
fix: force create extensions snapshot
improvement: support custom foreign key error messages
2021-03-19 18:42:10 -04:00
Zach Daniel
4be11ffc70 feat: automatically install extensions from repo 2021-03-02 12:33:24 -05:00
Zach Daniel
ef9ddd9c54 fix: typo in references for multitenancy
fix: `null: true` when attr isn't on all resources for a table
2021-03-02 11:38:12 -05:00
Zach Daniel
eb703efe6f fix: better embedded filters, switch to latest ash 2021-02-24 13:59:49 -05:00
Zach Daniel
33a84e1799 improvement: support latest ash 2021-02-22 23:53:18 -05:00
Zach Daniel
0ce0cc9d09 fix: trim when choosing new attribute name 2021-02-08 15:29:52 -05:00
Zach Daniel
3fa60c68ea fix: don't reference polymorphic tables to belongs_to relationships 2021-02-06 16:03:06 -05:00
Zach Daniel
5cb77c757a chore: format + test 2021-02-06 15:52:47 -05:00
Zach Daniel
1386d06bf7 fix: set up references properly 2021-02-06 15:44:00 -05:00
Zach Daniel
cb6943b233 fix: reference the configured table if set 2021-02-06 15:05:37 -05:00
Zach Daniel
c5f69eaa69 chore: WIP on polymorphic associations 2021-01-31 16:39:59 -05:00
Zach Daniel
fbc42ce87a fix: rework the way multitenant migrations work
feat: add `mix ash_postgres.create`

feat: add `mix ash_postgres.migrate`

feat: add `mix ash_postgres.migrate --tenants`

feat: add `mix ash_postgres.drop`
2021-01-26 19:16:29 -05:00
Zach Daniel
7f8aa98f24 improvement: better errors for multitenant unique constraints
fix: un-break the `in` filter type casting code

test: add tests for untested features
2021-01-26 15:07:26 -05:00
Zach Daniel
5b3fd3f144 feat: support latest ash + contains 2021-01-23 22:45:15 -05:00