mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
CHANGELOG.md
This commit is contained in:
1 parent
4be1923921
commit
936d2e56ea
2 files changed
+14
-1
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user