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
Zach Daniel
86d9e7e7bd
improvement: update to latest ash
2021-05-14 01:20:10 -04:00
Zach Daniel
b7efe6e078
improvement: custom index names
...
fix: simpler index names
2021-04-27 17:16:56 -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
7845126037
test: confirm new behavior
2021-04-13 12:31:14 -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
WolfDan
ac0b18c72b
improvement: primary autoincrement key as bigserial ( #54 )
2021-04-12 12:30:30 -04:00
Zach Daniel
b30bf8b821
chore: fix tests
2021-03-21 21:49:29 -04: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
5cb77c757a
chore: format + test
2021-02-06 15:52:47 -05:00
Zach Daniel
b800b2c984
chore: format
2021-02-06 15:21:52 -05:00
Zach Daniel
cb6943b233
fix: reference the configured table if set
2021-02-06 15:05:37 -05:00
Zach Daniel
6eb46231ea
chore: fix formatter
2021-01-12 20:53:06 -05:00
zimt28
38bf555867
feat: Add check_migrated option to migration generator ( #40 ) ( #43 )
2021-01-12 20:47:17 -05:00
Zach Daniel
3ac292617e
chore: update tests
2021-01-12 20:27:39 -05:00
Zach Daniel
94289b8454
chore: format
2021-01-12 20:22:28 -05:00
zimt28
a9db1f3601
chore: Update primary keys & formatting ( #44 )
2021-01-12 20:16:48 -05:00
zimt28
f5d51ecdb0
improvement: Omit field opts if they are default values ( #37 )
2021-01-09 19:52:19 -05:00