mirror of
https://github.com/mattermost/focalboard.git
synced 2024-11-27 08:31:20 +02:00
Auto-assign category id from the database (as expected because is serial/auto_increment integer field)
This commit is contained in:
parent
2478044f5e
commit
5c98fd76a3
@ -17,7 +17,6 @@ type Category struct {
|
||||
}
|
||||
|
||||
func (c *Category) Hydrate() {
|
||||
c.ID = utils.NewID(utils.IDTypeNone)
|
||||
c.CreateAt = utils.GetMillis()
|
||||
c.UpdateAt = c.CreateAt
|
||||
}
|
||||
|
@ -40,7 +40,6 @@ func (s *SQLStore) createCategory(db sq.BaseRunner, category model.Category) err
|
||||
query := s.getQueryBuilder(db).
|
||||
Insert(s.tablePrefix+"categories").
|
||||
Columns(
|
||||
"id",
|
||||
"name",
|
||||
"user_id",
|
||||
"team_id",
|
||||
@ -49,7 +48,6 @@ func (s *SQLStore) createCategory(db sq.BaseRunner, category model.Category) err
|
||||
"delete_at",
|
||||
).
|
||||
Values(
|
||||
category.ID,
|
||||
category.Name,
|
||||
category.UserID,
|
||||
category.TeamID,
|
||||
|
Loading…
Reference in New Issue
Block a user