Correctly call defaultConstraints

This commit is contained in:
Abitofevrything 2022-10-29 13:17:27 +02:00
parent c8d63b845d
commit aefc887c77
1 changed files with 1 additions and 3 deletions

View File

@ -158,9 +158,7 @@ class GeneratedColumn<T extends Object> extends Column<T> {
// these custom constraints refer to builtin constraints from drift
if (!isSerial && _defaultConstraints != null) {
into.buffer
..write(' ')
..write(_defaultConstraints);
_defaultConstraints!(into);
}
} else if ($customConstraints?.isNotEmpty == true) {
into.buffer