Alessio Montagnani
72b029be21
improvement: add support for :uuid_v7
type ( #333 )
2024-07-09 19:57:38 -04:00
Zach Daniel
6b1f6bae2a
improvement: add mix ash_postgres.install
(mix igniter.install ash_postgres)
2024-06-21 19:49:47 -04:00
Emad Shaaban
8bf1e2ede9
fix: ensure index keys are atoms in generated migrations ( #332 )
...
---------
Co-authored-by: Zach Daniel <zach@zachdaniel.dev>
2024-06-19 14:22:21 -04:00
Zach Daniel
526020e26c
improvement: better type handling using new type inference
2024-06-18 16:37:32 -04:00
Zach Daniel
860d085386
fix: update ash_sql to fix query generation issues
2024-06-18 07:50:54 -04:00
Robert Timis
6c81699b0d
feat: autogenerate index in references ( #321 )
...
* feat: autogenerate index in references
* check if old had index
2024-06-10 08:43:24 -04:00
Zach Daniel
ff47ff0e06
fix: properly support aggregate references in atomic updates
...
(yes, you read that right)
2024-05-29 12:30:16 -04:00
Zach Daniel
9f1936aef4
fix: ensure that identities are dropped when where/nils_distinct? are changed
...
fix: ensure that `where` is wrapped in parenthesis
2024-05-28 13:52:53 -04:00
Zach Daniel
8ad92cc3c0
improvement: update ash
and support new identity
features
2024-05-24 01:14:55 -04:00
Davide Briani
814e7de496
improvement: support on_delete: :nilify
for specific columns ( #289 )
2024-05-16 19:18:17 -05:00
Zach Daniel
7bd63ffcaf
test: update tests with migration changes
2024-03-27 17:28:28 -04:00
Zach Daniel
37cc01957d
improvement!: 3.0 ( #227 )
...
* WIP
* chore: fix mix.lock merge issues
* improvement: upgrade to 3.0
* chore: remove `repo.to_tenant`
* chore: continue removal of unnecessary helper
* chore: use `Ash.ToTenant`
2024-03-27 16:52:28 -04:00
Jinkyou Son
b60f680ab3
Fix: undo default of nulls_distinct option to true ( #223 )
2024-03-20 12:01:53 -04:00
Jinkyou Son
e27ce5e074
improvement: Add nulls_distinct option to CustomIndex ( #221 )
2024-03-12 20:22:34 -04:00
Zach Daniel
2d18c9cbeb
fix: properly alter renaming attributes in migration generator
...
fixes #207
2024-02-15 09:23:48 -05:00
Dmitry Maganov
8f3100a381
fix: keep fields of custom_index
in format that they were provided ( #195 )
2024-01-22 11:32:34 -05:00
Zach Daniel
97847da734
fix: include explicit schema in snapshot folder name
...
closes #193
2024-01-16 23:44:49 -05:00
Zach Daniel
b93b1d722b
improvement: support all_tenants?
option for identities
...
improvement: support `all_tenants?` option for custom indexes
2024-01-12 10:11:16 -05:00
Riccardo Binetti
021b7e4233
improvement: allow specifying multi-column foreign keys ( #180 )
...
* improvement: add match_with option on references
* improvement: add match_type option on references
2023-11-20 16:52:50 -05:00
Alessio Montagnani
0adec1d163
* improvement: in multitenant resources migration's generation, check if the relationship points at the primary key of the target then not adding the multitenancy attribute ( #144 and #157 )
2023-09-25 15:33:28 -04:00
Eduardo B. A
4171ef851d
fix: Fixes multiple schema identities migrations ( #156 )
...
Co-authored-by: Eduardo <sezdocs@dev-distrobox.fedora.local>
2023-06-25 17:26:31 -04:00
Zach Daniel
4a57a300da
fix: handle raised errors in bulk actions
2023-05-22 21:17:30 -04:00
Zach Daniel
f59bbee443
improvement: raise better errors on conflicting locks
2023-05-17 13:17:37 -04:00
Zach Daniel
cd821cc153
fix: go back to old migration sorting algorithm
...
closes : #139
2023-05-01 10:51:09 -04:00
Zach Daniel
903b1dd2e7
improvement: update ash
...
test: update tests
2023-04-21 10:43:58 -06:00
Zach Daniel
525dcc9f91
improvement: use digraph for operation ordering
...
fix: handle primary key changes properly
Doing this involves dropping all foreign keys using it, and dropping the existing
primary key before creating the new one.
2023-04-11 17:41:53 -04:00
Zach Daniel
7952a515fe
fix: properly handle newtypes, add test
2023-04-07 10:56:06 -04:00
Zach Daniel
059837651d
improvement: add unique constraints to changeset for custom unique indexes
...
improvement: separate out concurrent index creations and do them in a separate transaction
2022-11-25 14:06:22 -05:00
Zach Daniel
b4efb3a343
test: fix tests for migration_defaults
2022-11-21 02:45:09 -05:00
Zach Daniel
8f064db2f0
chore: work on tests for migration_defaults
2022-11-21 02:39:57 -05:00
Zach Daniel
94edf64322
fix: use attribute source for identity fields
2022-10-04 16:13:52 -04:00
Zach Daniel
79879e0bd6
fix: keep unique index keys in order in migrations
...
closes #109
2022-09-10 01:41:25 -04:00
Zach Daniel
4a69edce2d
important: update to ash 2.0 branch
2022-08-24 12:07:38 -04:00
Zach Daniel
0fe770b9ea
fix: include prefix in the proper place when renaming attributes
...
closes : #104
2022-08-09 16:37:20 -04:00
Zach Daniel
82d8d73b4d
test: add test for check constraint ordering
2022-07-22 01:01:32 -04:00
Zach Daniel
53560d82ac
test: add test for field_type
in relationships
2022-06-28 16:01:07 -04:00
Rebecca Le
c54c67af9d
fix: rename attributes correctly in down migration ( #98 )
2022-05-31 12:14:05 -04:00
Josh Price
ff3039ee32
improvement: handle fallback ecto migration default elegantly ( #94 )
2022-05-24 12:11:32 -04:00
Zach Daniel
316a4408f5
chore: fix test
2022-05-18 15:47:43 -04:00
Zach Daniel
2a5c7ac4a2
improvement: check_migrations, rename to --check
...
fix: don't use `table` where we should use `schema` in migration generator
2022-05-18 13:21:58 -04:00
Zach Daniel
6c5ee9aae5
improvement: add static schema specification in DSL
...
improvement: support static schema specification in migration generator
2022-05-13 17:41:30 -04:00
Josh Price
09475e408e
improvement: implement decimal ecto migration default ( #91 )
2022-04-28 10:48:44 -04:00
Josh Price
157a5b33e3
improvement: support float as Ecto migration default ( #89 )
2022-04-27 17:10:51 -04:00
Zach Daniel
575d838d72
improvement: add atom impl for EctoMigrationDefault
2022-04-21 10:36:34 -04:00
Zach Daniel
0c757d5049
chore: update for latest ash changes
2022-04-19 11:08:44 -04:00
Josh Price
a9b2fc83df
improvement: Add EctoMigrationDefault protocol and implement defaults ( #87 )
2022-04-19 00:06:02 -04:00
Zach Daniel
af97c549c5
improvement: add custom migration types, and repo level override
2021-11-10 04:18:36 -05:00
Zach Daniel
2fdcea7ef8
improvement: support default
on aggregates
...
chore: update to latest ash patterns for testing
2021-10-25 18:53:34 -04: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
f13f31330f
fix: properly set aggregate query sources
2021-07-02 12:41:44 -04:00