From 34f36b41d7bfe6bf0df9d817396590fd9875930e Mon Sep 17 00:00:00 2001 From: Roman Kalnytskyi Date: Sat, 19 Oct 2019 18:29:36 +0300 Subject: [PATCH] Bump jennifer 0.8.3 --- CHANGELOG.md | 35 ++++++++++++++++++++++++++++++++++- README.md | 2 +- docs/getting_started.md | 2 +- 3 files changed, 36 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76c31179..1ec9d6b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,43 @@ # Changelog -## 0.8.3 (29-09-2019) +## 0.8.3 (19-10-2019) **General** +* add crystal `0.31.1` compatibility +* add `crystal-db@0.7.0` support +* remove `sam` from mandatory dependencies +**Model** + +* fix bug with primary field presence assertion + +**View** + +* fix bug with primary field presence assertion + +**Adapter** + +* add `date` SQL data type +* `date_time` field type maps to `timestamp` SQL data type (postgres only) + +**Migration** + +* add `Runner.pending_migration?` to return whether there is pending (not invoked) migration +* add `Base.with_transaction` method to disable automatic transaction wrapping around migration methods +* add `Base.with_transaction?` to check whether migration is run under a transaction +* remove `var_string` field type +* remove `blob` field type for postgres +* fix wrong explanation message for `TableBuilder::CreateIndex` +* add new `TableBuilder::CreateTable#index` signatures (old ones are deprecated): + * `#index(fields : Array(Symbol), type : Symbol | ::Nil = nil, name : String | ::Nil = nil, lengths : Hash(Symbol, Int32) = {} of Symbol => Int32, orders : Hash(Symbol, Symbol) = {} of Symbol => Symbol)` + * `#index(field : Symbol, type : Symbol | ::Nil = nil, name : String | ::Nil = nil, length : Int32 | ::Nil = nil, order : Symbol | ::Nil = nil)` +* make default `varchar` length `254` (mysql only) +* add foreign key ON UPDATE and ON DELETE support +* `Base#add_foreign_key` accepts `on_delete` and `on_update` keyword arguments to specify corresponding actions +* `TableBuilder::ChangeTable#add_foreign_key` accepts `on_delete` and `on_update` keyword arguments to specify corresponding actions +* `TableBuilder::CreateTable#reference` accepts `on_delete` and `on_update` options to specify corresponding actions +* `TableBuilder::CreateTable#foreign_key` accepts `on_delete` and `on_update` keyword arguments to specify corresponding actions ## 0.8.2 (11-09-2019) diff --git a/README.md b/README.md index e4837190..57c4ea41 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ dependencies: ### Requirements - you need to choose one of the existing drivers for your DB: [mysql](https://github.com/crystal-lang/crystal-mysql) or [postgres](https://github.com/will/crystal-pg); sqlite3 adapter automatically installs required driver for it; -- crystal `>= 0.29.0`. +- crystal `>= 0.31.0`. ## Usage diff --git a/docs/getting_started.md b/docs/getting_started.md index 7c3935ed..ea2c4090 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -31,7 +31,7 @@ If you want to use SQLite3 - add [Jennifer SQLite3 adapter](https://github.com/i dependencies: jennifer: github: imdrasil/jennifer.cr - version: "~> 0.8.2" + version: "~> 0.8.3" jennifer_sqlite3_adapter: github: imdrasil/jennifer_sqlite3_adapter ```