Skip to content

Commit

Permalink
Release v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed Jun 21, 2016
1 parent 968eafe commit c225f0e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ Finally, Ecto now allows putting existing records in changesets, and the proper
|> Ecto.Changeset.change
|> Ecto.Changeset.put_assoc(:post, existing_post)
|> Repo.update!

### Application Repo Configuration

Ecto now requires you to explicitly configure your repo's in your top level config. You can avoid this warning by passing the -r flag or by setting the repositories managed by this application in your config/config.exs:

config :mux, ecto_repos: [...]
config :my_app, ecto_repos: [...]

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

Expand All @@ -128,10 +128,10 @@ The configuration may be an empty list if it does not define any repo.
* [Changeset] `changeset.model` has been renamed to `changeset.data`
* [Changeset] `changeset.optional` has been removed
* [Changeset] `changeset.errors` now always returns tuple `{String.t, Keyword.t}` in its values
* [DateTime] The "Z" (UTC) at the end of an ISO 8601 time has been removed as UTC should not be assumed.
* [DateTime] The "Z" (UTC) at the end of an ISO 8601 time has been removed as UTC should not be assumed
* [LogEntry] Overhaul log entry and store times in :native units
* [Repo] `Ecto.StaleModelError` has been renamed to `Ecto.StaleEntryError`
* [Repo] Poolboy now expects `:pool_overflow` option instead of `:max_overflow`
* [Repo] Poolboy now expects `:pool_overflow` option instead of `:max_overflow` (keep in mind though using such option is discourage altogether as it establishes short-lived connections to the database, likely being worse to performance in both short- and long-term)
* [Repo] `Repo.insert/2` will now send only non-nil fields from the struct to the storage (in previous versions, all fields from the struct were sent to the database)
* [Repo] `Ecto.Pools.Poolboy` and `Ecto.Pools.SojournBroker` have been removed in favor of `DBConnection.Poolboy` and `DBConnection.Sojourn`
* [Repo] `:timeout` in `Repo.transaction` now affects the whole transaction block and not only the particular transaction queries
Expand Down Expand Up @@ -163,6 +163,7 @@ The configuration may be an empty list if it does not define any repo.
* [Mix] Automatically reenable migration and repository management tasks after execution
* [Preloader] Support mixing preloads and assocs
* [Postgres] Add migration and changeset support for PostgreSQL exclusion constraints. Example: `create constraint(:sizes, :cannot_overlap, exclude: ~s|gist (int4range("min", "max", '[]') WITH &&)|)` and `exclusion_constraint(changeset, :sizes, name: :cannot_overlap, message: "must not overlap")`
* [Postgres] Support lateral joins (via fragments)
* [Postgres] Add migration and changeset support for PostgreSQL check constraints. Example: `create constraint(:products, "positive_price", check: "price > 0")` and `check_constraint(changeset, :price, name: :positive_price, message: "must be greater than zero")`
* [Query] Allow the `:on` field to be specified with association joins
* [Query] Support expressions in map keys in `select` in queries. Example: `from p in Post, select: %{p.title => p.visitors}`
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ For example, if you want to use PostgreSQL, add to your `mix.exs` file:
```elixir
defp deps do
[{:postgrex, ">= 0.0.0"},
{:ecto, "~> 2.0.0-beta"}]
{:ecto, "~> 2.0.0"}]
end
```

Expand Down Expand Up @@ -135,7 +135,7 @@ Besides the unit tests above, it is recommended to run the adapter integration t
# Run only PostgreSQL tests (version of PostgreSQL must be >= 9.4 to support jsonb)
MIX_ENV=pg mix test
# Run all tests (unit and all adapters/pools)
# Run all tests (unit and all adapters)
mix test.all
```

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-rc.6"
@version "2.0.0"
@adapters [:pg, :mysql]

def project do
Expand Down

3 comments on commit c225f0e

@mk
Copy link

@mk mk commented on c225f0e Jun 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for ecto 2! ❤️😺🍻🍾

@vladshcherbin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woohoo 🎉

@josevalim
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ 💚 💙 💛 💜

Please sign in to comment.