Skip to content

Commit

Permalink
Merge pull request #278 from imdrasil/release/0.8.3
Browse files Browse the repository at this point in the history
Bump Jennifer 0.8.3
  • Loading branch information
imdrasil committed Oct 19, 2019
2 parents 6f392d7 + 34f36b4 commit 219318e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
35 changes: 34 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 219318e

Please sign in to comment.