added NOT NULL in addition to the PRIMARY KEY

This commit is contained in:
Gani Georgiev
2022-12-10 21:25:07 +02:00
parent 37bac5cc50
commit 972b06c708
3 changed files with 6 additions and 6 deletions
+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",
}