primary.key no default type

This commit is contained in:
Tobe O 2019-07-04 17:30:42 -04:00
parent 68a349c877
commit 010036a89f

View file

@ -35,9 +35,7 @@ class Column {
class PrimaryKey extends Column { class PrimaryKey extends Column {
const PrimaryKey({ColumnType columnType}) const PrimaryKey({ColumnType columnType})
: super( : super(type: columnType, indexType: IndexType.primaryKey);
type: columnType ?? ColumnType.serial,
indexType: IndexType.primaryKey);
} }
const Column primaryKey = PrimaryKey(); const Column primaryKey = PrimaryKey();