mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Add autogenerate scheme.name for new schemes without explicit name (#8848)
This commit is contained in:
committed by
Martin Kraft
parent
a51b2367a3
commit
f1cd33c822
@@ -160,6 +160,9 @@ func (s *SqlSupplier) createScheme(ctx context.Context, scheme *model.Scheme, tr
|
||||
}
|
||||
|
||||
scheme.Id = model.NewId()
|
||||
if len(scheme.Name) == 0 {
|
||||
scheme.Name = model.NewId()
|
||||
}
|
||||
scheme.CreateAt = model.GetMillis()
|
||||
scheme.UpdateAt = scheme.CreateAt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user