added NOT NULL in addition to the PRIMARY KEY

This commit is contained in:
Gani Georgiev committed 2022-12-10 21:25:07 +02:00
1 parent 37bac5cc50
commit 972b06c708
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -461,7 +461,7 @@ func (dao *Dao) SyncRecordTableSchema(newCollection *models.Collection, oldColle
// create
if oldCollection == nil {
cols := map[string]string{
schema.FieldNameId: "TEXT PRIMARY KEY",
schema.FieldNameId: "TEXT PRIMARY KEY NOT NULL",
schema.FieldNameCreated: "TEXT DEFAULT '' NOT NULL",
schema.FieldNameUpdated: "TEXT DEFAULT '' NOT NULL",
}