CHANGELOG.md

This commit is contained in:
Gwendal Roué committed 2016-08-10 09:08:06 +02:00
1 parent 4be1923921
commit 936d2e56ea
2 files changed
+14 -1

No files matched your search

+13
View File
@@ -3,6 +3,19 @@ Release Notes
## Next Version
**Fixed**
- `ColumnDefinition.check()` can now define several constraints:
```swift
try db.create(table: "users") { t in
t.column("name", .Text).notNull()
.check { length($0) > 0 }
.check { !["root", "admin"].contains($0) }
}
```
**New**
- Persistable `update`, `exists` and `delete` methods now work with objects that have a nil primary key. They used to crash.
+1 -1
View File
@@ -2,7 +2,7 @@
- [ ] @hdlj: FetchedRecordsController throttling
- [ ] @hdlj: Check RAM pressure
- [ ] Table builder: allow several foreign keys on a columns
- [ ] Table builder: allow checks on a columns
- [X] Table builder: allow checks on a columns
- [X] Record.exists(db) should return false when primary key is nil
- [X] Record.update(db) should throw, not crash, when primary key is nil
- [ ] Fatal Error when MutablePersistable.update(_:columns:) is given columns that do not exist in the database.