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
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
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
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
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
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
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
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
5d50b98298
improvement: handle new spark versions better, more explicit snapshots
2023-04-26 22:23:43 -04:00
Zach Daniel
aec9e1578e
improvement: don't call .table
on nil
snapshot
2023-04-19 17:32:37 -06:00
Zach Daniel
86e02d2fe9
fix: don't call .table
on nil
2023-04-18 22:44:19 -04: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
c72210adff
chore: keep constraints on attribute in migration generator
2023-04-07 10:29:45 -04:00
Zach Daniel
bb2e3a3b9b
fix: honor newtypes when determining migration type
2023-04-07 10:12:32 -04:00
Zach Daniel
a9cbf9b7c7
fix: handle nil ash_functions_version in another place
2023-04-06 12:13:26 -04:00
Zach Daniel
f19426789a
fix: handle nil ash_functions_version
2023-04-06 12:10:13 -04:00
Zach Daniel
dc74dd534c
fix: properly set next migration name
2023-02-03 11:44:34 -05:00
Zach Daniel
cc643393d9
improvement: add migration_ignore_attributes
...
chore: update ash, fix ci
2023-02-01 02:05:04 -05:00
Zach Daniel
4f91e65d51
fix: properly set migrations_path
default in umbrellas
2022-12-27 18:19:18 -05:00