diff --git a/internal/storage/sql.go b/internal/storage/sql.go index 3e20c47b2..2cbc6df08 100644 --- a/internal/storage/sql.go +++ b/internal/storage/sql.go @@ -118,7 +118,7 @@ var ( pool TEXT NULL, create_time DATE NOT NULL, current INTEGER DEFAULT 0, - type TEXT NULL + type TEXT NOT NULL ) ` @@ -131,7 +131,7 @@ var ( CheckCluster = `SELECT COUNT(*) FROM pragma_table_info('clusters') WHERE name = 'type'` // update new cluster column - UpdateCluster = `ALTER TABLE clusters ADD COLUMN type TEXT NULL default 'develop'` + UpdateCluster = `ALTER TABLE clusters ADD COLUMN type TEXT NOT NULL default 'develop'` // delete cluster DeleteCluster = `DELETE from clusters WHERE name = ?`