Hi there,
We have a large app that will migrate to CockroachDB. CockroachDB uses the PostgreSQL wire protocol and so the Postgrex adapter works perfectly fine. In the meantime we need to support both PostgreSQL and CockroachDB and want to run Ecto migrations against both.
Cockroach however does not support running DDL migrations inside of a transaction
> CockroachDB only guarantees atomicity for schema changes within single statement transactions, either implicit transactions or in an explicit transaction with a single schema change statement.
We would have to set `disable_migration_lock` and `disable_ddl_transaction` on all migrations. There is a config option to disable `migration_lock` that can be set on the Repo, but there's no such option to globally disable ddl_transaction.
Proposal:
Add new config `ddl_transaction` that disables the ddl_transaction for all migrations
Happy to do the work if this is accepted.
Thanks!