- [migrations] Add
:cascadeoption todrop - [migrations] Support
--prefixinmix ecto.migrations - [migrations] Add
--log-migrator-sqland--log-migrations-sql - [mysql] Cache more insert/update queries and allow
:cache_statementto be set - [mssql] Support more recent tds versions
- [migrations] Consider the database prefix when locking tables
- [mysql] Support lateral joins
- [sql] Fix CTE subqueries not finding parent bindings
- [migration] Improve error message on invalid migration type
- [postgres] Avoid duplicate order_by with distinct
- [sql] Implement new checked_out? callback required by latest Ecto
- [migrations] Ensure migration_source option is respected in PostgreSQL adapter
- [migrations] Fix a bug where the migration lock would not apply on the first migration (when the schema migrations table is empty). This fix changes how migration tables are locked, therefore let us know of any possible regressions in your workflow
- [migrations] Allow generating migrations from within umbrella app
- [postgres] Add
:formatoption to PostgreSQL explain - [postgres] Support
:socket_dirconnection option when usingmix ecto.loadormix ecto.dump - [sandbox] Support locally registered processes in
allow/3 - [storage] Do not fail
storage_upif the user has access to an already-created database - [tds] Support for
:inner_lateraland:left_lateral
- [mysql] Support defaults for JSON columns
- [postgres] Allow Postgrex v1.0
- [migrations] Pass
:schema_migrationoption to repo operations forprepare_querychecks - [psql] Support
:force_dropconfiguration to force a DB to be dropped
- [migrations] Support
:withoption inreferencesfor composite foreign keys - [migrations] Support
:matchoption inreferences - [tds] Support TDS 3-part and 4-part prefixes
- [tds] Support explain plan for the TDS adapter
- [migrations] Reload all migrations once the lock is free to avoid running the same migration more than once
- [query] Support nested subqueries
- [migrations] Add option to skip schema migrations table checks
- [migrations] Add
:migration_repoconfiguration to allow a different repository to host the schema migrations - [migrations] Support
validate: falseon references and constraints - [migrations] Accept
:migration_primary_keyas false and add:migration_foreign_keyrepo config - [postgres] Support for
:identitykey types in Postgres 10 or later - [postgres] Use IF NOT EXIST when creating index with
create_if_not_exists, this requires PG 9.5+ or later - [repo] Support
Repo.explain(:all | :update_all | :delete_all, query)for Ecto adapters - [sandbox] Allow for dynamic repos to be checked out in sandbox
- [migrations] Flush migration commands before executing
before_commitcallback - [migrations] Do not swallow errors when migration lock is disabled
- [ecto] Fix warnings on Elixir v1.11
- [migrations] Migration prefix should have higher preference than
default_options
- [sandbox] Add
Ecto.Adapters.SQL.start_owner!/2andEcto.Adapters.SQL.stop_owner/1 - [myxql] Decode BIT columns when using MyXQL and
:booleantype - [migrations] Use one line per migration in the schema dump
- [ecto] Support
asandparent_asfrom Ecto v3.4.3+ - [ecto] Support
x in subquery(query)from Ecto v3.4.3+
- [myxql] A binary with size should be a varbinary
- [mssql] A binary without size should be a varbinary(max)
- [myxql] Assume the reference does not change in MyXQL and prepare for v0.4.0
- [adapters] Support Ecto's v3.4
json_extract_path/2 - [migrations] Support multiple migration paths to be given with
--migration-path - [mssql] Add built-in support to MSSQL via the TDS adapter
- [repo] Support custom options on telemetry
- [adapters] Support fragments in locks
- [migration] Add
:includeoption to support covering indexes
- [myxql] Allow not setting the encoding when creating a database
- [myxql] Removing prefixed table name from constraints on latest MySQL versions
- [sql] Fix precedence of
is_nilwhen inside a comparison operator
- [adapters] Start StorageSupervisor before using it
- [adapters] Do not leak PIDs on storage commands
- [migrations] Use :migration_primary_key in create/1
- [ecto] Upgrade and support Ecto v3.3
- [repo] Include
:idle_timeon telemetry measurements - [migration] Support anonymous functions in
Ecto.Migration.execute/2
- [migration] Ensure that flush() will raise on rollback if called from
change/0
- [mysql] Support myxql v0.3
- [migration] Support anonymous functions in execute
- [mix ecto.create] Change default charset in MyXQL to utf8mb4
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.
- [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)
- [sql] Fix generated "COMMENT ON INDEX" for PostgreSQL
- [sql] Set
cache_statementforinsert_all
- [migration] Add
@disable_migration_lockto be better handle concurrent indexes - [mysql] Set
cache_statementfor inserts
- [mysql] Deprecate Ecto.Adapters.MySQL
- [migrator] Print warning message if concurrent indexes are used with migration lock
- [migrator] Add
--migrations-pathto ecto.migrate/ecto.rollback/ecto.migrations Mix tasks
- [migrator] Make sure an unboxed run is performed when running migrations with the ownership pool
- [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
- [repo] Fix backwards incompatible change in Telemetry metadata
v3.1 requires Elixir v1.5+.
- [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)
- [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
- [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.
- [repo] Add
:repoand:typekeys to telemetry events - [migrations] Add
:add_if_not_existsand:remove_if_existsto columns in migrations
- [migrations] Load all migrations before running them
- [sandbox] Include
:queue_targetand:queue_intervalin SQL Sandbox checkout
- [repo] Bump telemetry dependency
- [migrations] Perform strict argument parsing in
ecto.migrate,ecto.rollback,ecto.loadandecto.dump
- [migrations] Do not log migration versions query
- [repo]
Telemetry.attach/5andTelemetry.attach_many/5are deprecated in favor of:telemetry.attach/5and:telemetry.attach_many/5
- [migration] Support
after_beginandbefore_commitmigration callbacks - [migration] Add
:prefixoption toreferences/2
- [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
- [query] Support
Ecto.Queryininsert_allvalues - [migration] Add
Ecto.Migration.repo/0
- [migrations] Support
drop_if_existsfor constraints
- [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
- Initial release