1
0
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:
Jesús Espino 2022-04-04 16:12:38 +02:00
parent 2478044f5e
commit 5c98fd76a3
2 changed files with 0 additions and 3 deletions

View File

@ -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
}

View File

@ -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,