Zach Daniel
33cfbd1cc4
chore: drop columns by default, change CLI option to dont-drop-columns
...
closes #307
2024-05-27 11:44:27 -04:00
Dmitry Maganov
06752d37e4
improvement: add ash_postgres.squash_snapshots
mix task ( #302 )
2024-05-27 09:45:02 -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
d5c55f6b10
fix: add and remove custom indexes in tandem properly
2024-05-16 00:14:38 -05:00
Zach Daniel
2421e6fc2c
fix: properly parse previous version from migration generation
2024-05-12 12:51:13 -04:00
Jechol Lee
459d853d28
fix: resolve_renames that keeps columns to be renamed in list of columns to add ( #269 )
2024-05-06 09:02:34 -04:00
Zach Daniel
3334999eb1
fix: properly pass old version in when migrating extensions
2024-05-05 11:40:07 -04:00
Zach Daniel
4dd588c043
fix: honor dry_run option in extension migrations
2024-05-05 11:13:30 -04:00
Zach Daniel
7d83cecad7
fix: don't wait for shell input when checking migrations
2024-04-02 23:03:57 -04:00
Zach Daniel
eb08fed28b
improvement: fixes for 3.0 changes and AshSql changes
2024-04-01 13:58:44 -04:00
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
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