Changelog for v3.x
v3.2.2 (2019-11-25)
Enhancements
- [mysql] Support myxql v0.3
v3.2.1 (2019-11-02)
Enhancements
- [migration] Support anonymous functions in execute
Bug fixes
- [mix ecto.create] Change default charset in MyXQL to utf8mb4
v3.2.0 (2019-09-07)
This new version requires Elixir v1.6+. Note also the previously soft-deprecated Ecto.Adapters.MySQL has been removed in favor of Ecto.Adapters.MyXQL. We announced the intent to remove Ecto.Adapters.MySQL back in v3.0 and Ecto.Adapters.MyXQL has been tested since then and ready for prime time since v3.1.
Enhancements
- [sql] Use
get_dynamic_repoon SQL-specific functions - [sql] Respect
Ecto.Type.embed_as/2choice when loading/dumping embeds (Ecto 3.2+ compat) - [sql] Support CTE expressions (Ecto 3.2+ compat)
Bug fixes
- [sql] Fix generated "COMMENT ON INDEX" for PostgreSQL
v3.1.6 (2019-06-27)
Enhancements
- [sql] Set
cache_statementforinsert_all
v3.1.5 (2019-06-13)
Enhancements
- [migration] Add
@disable_migration_lockto be better handle concurrent indexes - [mysql] Set
cache_statementfor inserts
Deprecations
- [mysql] Deprecate Ecto.Adapters.MySQL
v3.1.4 (2019-05-28)
Enhancements
- [migrator] Print warning message if concurrent indexes are used with migration lock
v3.1.3 (2019-05-19)
Enhancements
- [migrator] Add
--migrations-pathto ecto.migrate/ecto.rollback/ecto.migrations Mix tasks
Bug fixes
- [migrator] Make sure an unboxed run is performed when running migrations with the ownership pool
v3.1.2 (2019-05-11)
Enhancements
- [migrator] Add
Ecto.Migrator.with_repo/2to start repo and apps - [mix] Add
--skip-if-loadedforecto.load - [sql] Add
Ecto.Adapters.SQL.table_exists?/2
v3.1.1 (2019-04-16)
Bug fixes
- [repo] Fix backwards incompatible change in Telemetry metadata
v3.1.0 (2019-04-02)
v3.1 requires Elixir v1.5+.
Enhancements
- [mysql] Introduce Ecto.Adapters.MyXQL as an alternative library for MySQL
- [migrations] Run all migrations in subdirectories
- [repo] Update to Telemetry v0.4.0 (note the measurements value differ from previous versions)
Bug fixes
- [sandbox] Respect
:ownership_timeoutrepo configuration on SQL Sandbox - [migrations] Commit and relock after every migration to avoid leaving the DB in an inconsistent state under certain failures
Backwards incompatible changess
- [migrations] If you are creating indexes concurrently, you need to disable the migration lock:
config :app, App.Repo, migration_lock: nil. This will migrations behave the same way as they did in Ecto 2.0.
v3.0.5 (2019-02-05)
Enhancements
- [repo] Add
:repoand:typekeys to telemetry events - [migrations] Add
:add_if_not_existsand:remove_if_existsto columns in migrations
Bug fixes
- [migrations] Load all migrations before running them
- [sandbox] Include
:queue_targetand:queue_intervalin SQL Sandbox checkout
v3.0.4 (2018-12-31)
Enhancements
- [repo] Bump telemetry dependency
- [migrations] Perform strict argument parsing in
ecto.migrate,ecto.rollback,ecto.loadandecto.dump
Bug fixes
- [migrations] Do not log migration versions query
Deprecations
- [repo]
Telemetry.attach/5andTelemetry.attach_many/5are deprecated in favor of:telemetry.attach/5and:telemetry.attach_many/5
v3.0.3 (2018-11-29)
Enhancements
- [migration] Support
after_beginandbefore_commitmigration callbacks - [migration] Add
:prefixoption toreferences/2
Bug fixes
- [migration] Do not start a transaction for migrated versions if there is no
:migration_lock - [migration] Fix removing an reference column inside alter table
- [migration] Warn on removed
:pool_timeoutoption
v3.0.2 (2018-11-20)
Enhancements
- [query] Support
Ecto.Queryininsert_allvalues - [migration] Add
Ecto.Migration.repo/0
v3.0.1 (2018-11-17)
Enhancements
- [migrations] Support
drop_if_existsfor constraints
Bug fixes
- [migrations] Only commit migration transaction if migration can be inserted into the DB
- [migrations] Do not run migrations from
_buildwhen using Mix - [migrations] Improve errors when checking in already committed sandboxes
- [mysql] Do not pass nil for
--userto mysqldump - [package] Require Ecto 3.0.2 with bug fixes
- [package] Require Mariaex 0.9.1 which fixes a bug when used with Ecto 3.0.2
- [sandbox] Raise when using sandbox on non-sandbox pools
v3.0.0 (2018-10-29)
- Initial release