Commit graph

119 commits

Author SHA1 Message Date
Zach Daniel
0ce0cc9d09 fix: trim when choosing new attribute name 2021-02-08 15:29:52 -05:00
Zach Daniel
3fa60c68ea fix: don't reference polymorphic tables to belongs_to relationships 2021-02-06 16:03:06 -05:00
Zach Daniel
5cb77c757a chore: format + test 2021-02-06 15:52:47 -05:00
Zach Daniel
1386d06bf7 fix: set up references properly 2021-02-06 15:44:00 -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
70568c43c0 feat: support polymorphic relationships 2021-02-05 18:59:33 -05:00
Zach Daniel
c5f69eaa69 chore: WIP on polymorphic associations 2021-01-31 16:39:59 -05:00
Zach Daniel
9d5583cce7 chore: WIP on polymorphic relationships 2021-01-28 19:42:55 -05:00
Zach Daniel
4c29969509 fix: actually insert the tracking row 2021-01-26 19:37:32 -05:00
Zach Daniel
fbc42ce87a fix: rework the way multitenant migrations work
feat: add `mix ash_postgres.create`

feat: add `mix ash_postgres.migrate`

feat: add `mix ash_postgres.migrate --tenants`

feat: add `mix ash_postgres.drop`
2021-01-26 19:16:29 -05:00
Zach Daniel
7f8aa98f24 improvement: better errors for multitenant unique constraints
fix: un-break the `in` filter type casting code

test: add tests for untested features
2021-01-26 15:07:26 -05:00
Zach Daniel
d8b3db7bf1 fix: ago was adding, not subtracting 2021-01-24 13:24:43 -05:00
Zach Daniel
5b3fd3f144 feat: support latest ash + contains 2021-01-23 22:45:15 -05:00
Zach Daniel
a2a88c661c docs: update --apis docs 2021-01-22 16:47:24 -05:00
Zach Daniel
80e63f9067 feat: support fragments
feat: support type casting

feat: update to latest ash to support expressions
2021-01-22 16:47:24 -05:00
Frank Dugan III
f7c826bc01
chore: fix typos (#46) 2021-01-22 15:49:34 -05:00
zimt28
f29ed6a014
Fix incorrect joins (#45) 2021-01-15 21:17:39 -05:00
zimt28
38bf555867
feat: Add check_migrated option to migration generator (#40) (#43) 2021-01-12 20:47:17 -05:00
Zach Daniel
d3ae6f634b fix: rename out of phase, small migration fix 2021-01-12 14:21:44 -05:00
zimt28
6a3ebe83db
Remove parentheses (#39) 2021-01-11 13:15:21 -05:00
zimt28
618d16d5d1
improvement: Use ecto_sql formatter settings (#38) 2021-01-10 10:59:33 -05:00
zimt28
f5d51ecdb0
improvement: Omit field opts if they are default values (#37) 2021-01-09 19:52:19 -05:00
Zach Daniel
f3d1d5f48d improvement: support latest ash 2021-01-08 12:14:41 -05:00
Darren Black
650896a7ea
Make integer serial if generated (#36)
Co-authored-by: Darren Black <darren@ifixsystems.com.au>
2021-01-07 22:53:16 -05:00
Zach Daniel
7af29756fa
feat: retain snapshot history 2021-01-07 00:37:41 -05:00
Darren Black
29da1cf522
improvement: Add :binary migration type (#33)
Co-authored-by: Darren Black <darren@ifixsystems.com.au>
2021-01-06 21:47:32 -05:00
Zach Daniel
b2428213c7 feat: support latest Ash version 2020-12-28 19:26:04 -05:00
Zach Daniel
8e321af566 chore: update to latest ash 2020-12-27 01:20:12 -05:00
Zach Daniel
e8dde8b2ff feat: support refs on both sides of operators 2020-12-23 14:46:49 -05:00
Zach Daniel
20cbfaa650 fix: properly accept the tenant_migration_path 2020-12-05 20:17:39 -05:00
Zach Daniel
055e22f3b7 fix: set default properly when modifying 2020-12-01 01:54:20 -05:00
Zach Daniel
595ad71891 fix: various migration generator bug fixes 2020-11-24 18:11:02 -05:00
Zach Daniel
06c2753abe feat: don't drop columns unless explicitly told to 2020-11-19 22:09:26 -05:00
Zach Daniel
f0898ae1c3
fix: drop constraints outside of phases (#29) 2020-11-17 18:35:57 -05:00
Zach Daniel
6634f22685 docs: update repo docs 2020-11-17 00:37:04 -05:00
Zach Daniel
e4f053d639
chore: fix lint 2020-11-07 00:01:18 -05:00
Zach Daniel
b11f505f2c
fix: only alter the things that have changed 2020-11-07 00:00:41 -05:00
Zach Daniel
aaeca65df4
improvement: add utc_datetime migration type 2020-11-05 21:19:51 -05:00
Zach Daniel
f9101be69b
chore: remove IO.inspect 2020-11-03 00:41:38 -05:00
Zach Daniel
ec03af83b8
fix: access data_layer_query with function 2020-11-02 22:59:51 -05:00
Zach Daniel
53d06867dc
improvement: mark repo as not requiring compile-time dep 2020-10-29 00:17:48 -04:00
Zach Daniel
7e29c38c7f
fix: verify repo using ensure_compiled 2020-10-29 00:03:43 -04:00
Zach Daniel
35b9cae6d1
docs: update docs 2020-10-28 23:56:59 -04:00
Zach Daniel
4267d0165d
chore: uppdate docs/add guide 2020-10-28 23:53:28 -04:00
Zach Daniel
03510dae24
feat: multitenancy (#25) 2020-10-28 22:26:45 -04:00
Zach Daniel
9eb703437d
feat: support latest ash 2020-10-17 19:13:51 -04:00
Zach Daniel
dcce3f51fe
chore: updated ash to latest version, fix compiler warnings (#24) 2020-10-07 01:45:58 -04:00
Zach Daniel
493cfb7754
feat: update to latest ash, trigram filter 2020-10-06 01:39:47 -04:00
Zach Daniel
e9b3e26ea0
WIP 2020-10-05 01:08:38 -04:00