Commit graph

47 commits

Author SHA1 Message Date
Igor Barakaiev
ffbfc1c23a
fix: default_repo_contents in ash_postgres.install (#340) 2024-07-03 12:12:37 -04:00
Zach Daniel
e42be38183 chore: update to latest igniter goodies 2024-07-02 18:07:50 -04:00
Igor Barakaiev
58311f7152
fix: check for existing installed_extensions/0 in ash_postgres.install (#338) 2024-06-27 17:05:53 -04:00
Igor Barakaiev
75a87e854a
fix: typo in configure_runtime/3 (#336) 2024-06-26 11:40:17 -04:00
Igor Barakaiev
278b2a31a5
fix: configure_runtime/3 in ash_postgres.install (#335) 2024-06-26 08:00:35 -04:00
Zach Daniel
e520ddfc35 chore: get build passing
fix: properly delete args passed from migrate to ecto
2024-06-24 10:20:16 -04:00
Zach Daniel
6b1f6bae2a improvement: add mix ash_postgres.install (mix igniter.install ash_postgres) 2024-06-21 19:49:47 -04:00
Zach Daniel
b53ef4f281 chore: update docs description 2024-06-20 12:02:47 -04:00
Jechol Lee
a3a2905c68
Fix Elixir 1.17 warnings (#326) 2024-06-13 19:54:22 -04:00
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
Sucipto
555a737493
fix: remove duplicate repo flags (#285) 2024-05-15 07:22:28 -04:00
Zach Daniel
38eec0ba86 docs: reformat docs and revisit certain guides
improvement: support `mix ash.rollback` with interactive rollback
2024-04-09 20:21:04 -04:00
bcksl
b66427e9bd
feat: add create? and drop? callbacks to AshPostgres.Repo (#143)
Co-authored-by: Zach Daniel <zach@zachdaniel.dev>
2024-03-27 17:05:14 -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
b1d10c32cc chore: fix credo and update ash 2024-01-29 16:57:04 -05:00
Zach Daniel
a05783d422 fix: only migrate/rollback one repo at a time
fixes #197
2024-01-29 16:47:55 -05:00
Zach Daniel
6ff25bf342 improvement: require name when generating migrations 2023-12-27 10:08:13 -05:00
Zach Daniel
54908395eb fix: reenable mix tasks that need calling 2023-12-06 18:53:37 -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
67132c41bd fix: properly find migration directories in umbrella apps 2023-02-16 15:23:50 -05:00
Zach Daniel
70645af88f fix: don't make migration generation recursive 2022-12-10 18:54:09 -05:00
Zach Daniel
48cfadc1fc fix: nevermind, can't make migrate recursive 2022-12-10 16:20:41 -05:00
Zach Daniel
eebd40459a improvement: make migrate task recursive as well 2022-12-10 16:17:10 -05:00
Zach Daniel
9a7626ab46 improvement: mark generate_migrations as recursive for umbrellas 2022-12-10 16:13:25 -05:00
Zach Daniel
68c6d7aaf8 improvement: better error messages from mix tasks
fix: various broken behavior from new aggregate work
improvement: validate that references refer to relationships

closes #99
2022-12-10 15:59:50 -05:00
Zach Daniel
385214694d docs: total docs reorg 2022-08-24 12:07:38 -04:00
Zach Daniel
4a69edce2d important: update to ash 2.0 branch 2022-08-24 12:07:38 -04:00
Rebecca Le
d30dce6e91
docs: Fix docs for name option to generate_migrations (#100) 2022-06-15 10:29:49 -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
95be84f734 improvement: --name when generating migrations 2021-07-08 14:52:53 -04:00
Zach Daniel
ddbd43b611 fix: fix migrator mix tasks w/ only/except tenants
fix: drop foreign keys after table create properly
2021-07-08 13:35:16 -04:00
Zach Daniel
7f5a56d9bd improvement: add mix ash_postgres.rollback
fix: drop foreign keys before dropping table
2021-07-08 11:37:33 -04:00
Zach Daniel
6453cb8bf6 fix: don't start the whole app in migrate 2021-03-02 12:47:13 -05:00
Zach Daniel
eb703efe6f fix: better embedded filters, switch to latest ash 2021-02-24 13:59:49 -05:00
Zach Daniel
33a84e1799 improvement: support latest ash 2021-02-22 23:53:18 -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
a2a88c661c docs: update --apis docs 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
38bf555867
feat: Add check_migrated option to migration generator (#40) (#43) 2021-01-12 20:47:17 -05:00
Zach Daniel
7af29756fa
feat: retain snapshot history 2021-01-07 00:37:41 -05:00
Zach Daniel
20cbfaa650 fix: properly accept the tenant_migration_path 2020-12-05 20:17:39 -05:00
Zach Daniel
06c2753abe feat: don't drop columns unless explicitly told to 2020-11-19 22:09:26 -05:00
Zach Daniel
03510dae24
feat: multitenancy (#25) 2020-10-28 22:26:45 -04:00
Zach Daniel
51cb9c1a68
feat: support base_filter (#18) 2020-09-19 18:08:09 -04:00
Zach Daniel
ed1fe9bd24
fix: document/update migration path logic 2020-09-10 23:47:14 -04:00
Zach Daniel
24b743d31b
feat: snapshot-based migration generator 2020-09-10 20:26:47 -04:00