Skip to content

Commit

Permalink
Release v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed Jun 21, 2016
1 parent 59e3ddf commit 7105a26
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
18 changes: 13 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,15 @@ Ecto now requires you to explicitly configure your repo's in your top level conf

The configuration may be an empty list if it does not define any repo.

## Backwards incompatible changes
## v2.0.1 (2016-06-21)

### Bug fixes

* [Postgres] Ensures the `:postgrex` application is restarted after running migrations

## v2.0.0 (2016-06-21)

### Backwards incompatible changes

* [Changeset] `changeset.model` has been renamed to `changeset.data`
* [Changeset] `changeset.optional` has been removed
Expand All @@ -140,16 +148,16 @@ The configuration may be an empty list if it does not define any repo.
* [Schema] `__schema__(:types)` now returns map
* [SQL] `Ecto.Adapters.SQL.begin_test_transaction`, `Ecto.Adapters.SQL.restart_test_transaction` and `Ecto.Adapters.SQL.rollback_test_transaction` have been removed in favor of the new ownership-based `Ecto.Adapters.SQL.Sandbox`

## Soft deprecations (no warnings emitted)
### Soft deprecations (no warnings emitted)

* [Changeset] Deprecate `Ecto.Changeset.cast/4` in favor of `Ecto.Changeset.cast/3` + `Ecto.Changeset.validate_required/3`

## Deprecations
### Deprecations

* [Changeset] Deprecate `:empty` in `Ecto.Changeset.cast`
* [Repo] `Repo.after_connect/1` is deprecated, please pass the `:after_connect` repository option instead

## Enhancements
### Enhancements

* [Adapter] Ensure adapters work on native types, guaranteeing adapters compose better with custom types
* [Adapter] Support prepared queries in adapters
Expand Down Expand Up @@ -181,7 +189,7 @@ The configuration may be an empty list if it does not define any repo.
* [Schema] Support composite primary keys
* [Type] Add type `{:map, inner_type}`

## Bug fixes
### Bug fixes

* [Changeset] The `:required` option on `cast_assoc` and `cast_embed` will now tag `has_many` and `embeds_many` relationships as missing if they contain an empty list
* [DateTime] Fix Date/DateTime serialization for years above 9999
Expand Down
2 changes: 1 addition & 1 deletion lib/ecto/adapters/sql.ex
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ defmodule Ecto.Adapters.SQL do
end

defoverridable [prepare: 2, execute: 6, insert: 5, update: 6, delete: 4, insert_all: 6,
execute_ddl: 3, loaders: 2, dumpers: 2, autogenerate: 1]
execute_ddl: 3, loaders: 2, dumpers: 2, autogenerate: 1, ensure_all_started: 2]
end
end

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Ecto.Mixfile do
use Mix.Project

@version "2.0.0"
@version "2.0.1"
@adapters [:pg, :mysql]

def project do
Expand Down

0 comments on commit 7105a26

Please sign in to comment.