mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: populate default created_by and add not-null constraint in templates (#2290)
This commit is contained in:
@ -1797,7 +1797,7 @@ type InsertTemplateParams struct {
|
||||
Description string `db:"description" json:"description"`
|
||||
MaxTtl int64 `db:"max_ttl" json:"max_ttl"`
|
||||
MinAutostartInterval int64 `db:"min_autostart_interval" json:"min_autostart_interval"`
|
||||
CreatedBy uuid.NullUUID `db:"created_by" json:"created_by"`
|
||||
CreatedBy uuid.UUID `db:"created_by" json:"created_by"`
|
||||
}
|
||||
|
||||
func (q *sqlQuerier) InsertTemplate(ctx context.Context, arg InsertTemplateParams) (Template, error) {
|
||||
|
Reference in New Issue
Block a user