Zach Daniel
f03647825c
fix: ensure timestamps are present in extension migrations
2024-03-27 21:30:42 -04:00
Zach Daniel
804482b8ac
improvement!: change defaults for uuids to gen_random_uuid()
2024-03-27 17:20:07 -04:00
Rebecca Le
c436973e9f
fix!: Use UTC for default generated timestamps ( #131 )
...
In cases where the database server is not set to UTC, this fixes timezone inconsistencies when adding timestamp columns to tables with existing data, that would then have their timestamps set to non-UTC times.
2024-03-27 17:07:33 -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
Zach Daniel
adac811c79
fix: properly format migrations
...
fix: ensure exists aggregates have filters included
2024-03-20 16:18:27 -04:00
Jinkyou Son
b60f680ab3
Fix: undo default of nulls_distinct option to true ( #223 )
2024-03-20 12:01:53 -04:00
Minsub Kim
0c3b4e5425
fix: generate correct custom index name in down migration function ( #222 )
2024-03-20 08:36:44 -04:00
Jinkyou Son
e27ce5e074
improvement: Add nulls_distinct option to CustomIndex ( #221 )
2024-03-12 20:22:34 -04:00
Zach Daniel
ea853e5171
improvement: properly format generated migrations
2024-03-11 22:09:05 -04:00
Robert Graff
842f16a2fa
fix: typo in extension generator creates invalid drop
2024-03-06 20:54:08 -08:00
Jechol Lee
603d9c8cc6
fix: merge base_filter and custom index's where correctly ( #219 )
2024-03-06 19:33:10 -05:00
Robert Graff
b44d8cdc55
Fix: migration generator extensions in multiple repos ( #214 )
...
* Fix: Migration generator for extensions in multiple repos
* Do not rename legacy file on dry_run
2024-02-27 20:23:18 -05:00
Zach Daniel
2d18c9cbeb
fix: properly alter renaming attributes in migration generator
...
fixes #207
2024-02-15 09:23:48 -05:00
Zach Daniel
8f10c9b824
chore: update credo
2024-02-14 12:12:54 -05:00
Zach Daniel
1ea360d15c
improvement: detect bigserial when altering attributes
...
closes #204
2024-02-07 14:39:38 -05:00
Zach Daniel
809cd5582f
improvement: don't drop primary key in case of removal
2024-02-04 10:12:39 -05:00
Eduardo B. A
a8b7f3b3e7
feat: Make MigrationGenerator accept atoms ( #201 )
...
Co-authored-by: Eduardo B. Alexandre <sezdocs@github.com>
2024-02-02 12:25:02 -05:00
Zach Daniel
5952889ac7
chore: remove IO.inspect
2024-01-29 10:25:27 -05:00
Zach Daniel
2b813c8975
chore: consider ignore_fields
when comparing custom indexes
2024-01-27 10:56:11 -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
Jechol Lee
62a640ecb7
fix: Support all_tenants? in custom index ( #194 )
2024-01-15 05:40:05 -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
Zach Daniel
c0c9621534
improvement: support new bulk operations
...
fix: support encoding errors with expressions in them
2023-12-31 08:40:30 -05:00
Zach Daniel
ac980a2163
chore: fix error expression
2023-12-15 08:48:20 -05:00
Zach Daniel
407a7163ed
improvement: support for error/2
expression
2023-12-14 17:10:11 -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
Zach Daniel
db8255e5b1
improvement: support a 2 argument function for the repo option
2023-11-14 10:56:22 -05:00
Zach Daniel
082210933f
improvement: spport CURRENT_DATE
default
2023-10-27 10:33:03 -04:00
Zach Daniel
bc4b69a568
chore: ensure type is compiled
2023-10-27 00:06:55 -04:00
Zach Daniel
9769d995b3
chore: fix unused variable
2023-10-25 08:44:32 -04:00
Zach Daniel
53bb5941e8
fix: don't traverse new types for storage type
2023-10-24 12:54:31 -04:00
Zach Daniel
9f62d65215
improvement: support :ci_string
as a storage_type
2023-10-10 14:12:25 -04: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
Zach Daniel
e8a4b41758
improvement: support vector types and vector_cosine_distance
2023-09-11 22:34:51 -04:00
Zach Daniel
c8aa2a8dd8
improvement: add value_to_postgres_default/3
and AshPostgres.Type
2023-08-18 11:22:01 -04:00
Alessio Montagnani
4a02d8c6ad
improvement: custom-extension implementation ( #162 )
...
* improvement: custom-extension implementation
* improvement: allow adding custom-extension by module's reference and fixes formatting
* ci: fixes formatter
2023-08-08 10:20:26 -07:00
Zach Daniel
83e78ad786
fix: properly alter deferrability on attribute alter
2023-07-27 13:57:42 -04:00
Zach Daniel
4724e9b878
improvement: handle empty maps in migration defaults automatically
2023-07-27 11:22:41 -04:00
Zach Daniel
e37b04c170
improvement: handle empty lists in migraiton defaults automatically
2023-07-27 11:22:06 -04:00
Zach Daniel
b4879beb86
improvement: support deferrable
option in migration generator
2023-07-14 16:24:57 -04:00
Zach Daniel
c1a630ee16
improvement: support string_split
2023-07-12 15:16: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
Dmitry Maganov
29815eb6ec
fix: interpolate table names with inspect
in generated migrations ( #152 )
2023-06-07 10:37:10 -04:00
Zach Daniel
34cc3196f4
fix: handle changing custom index names better
...
fix: validate custom index names
2023-06-06 01:33:50 -04:00
Zach Daniel
d969b2eef9
fix: don't incorrectly mark references as primary key references
2023-05-01 18:03:55 -04:00
Zach Daniel
ab18c85bd4
chore: remove commented out code
2023-05-01 14:03:39 -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
805de0f2f1
improvement: support locking
2023-04-27 21:49:13 -04:00
Zach Daniel
5d50b98298
improvement: handle new spark versions better, more explicit snapshots
2023-04-26 22:23:43 -04:00