Skip to content

Commit

Permalink
fix insert SQL
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Gahlot <[email protected]>
  • Loading branch information
gauravgahlot committed Mar 5, 2021
1 parent 1769435 commit bb5d9cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,8 @@ func createTemplatesFromSQL(ctx context.Context, db *sql.DB) error {
return err
}
_, err = tx.Exec(`
INSERT INTO template (id, name, data, created_at)
VALUES ($1, $2, $3, $4)
INSERT INTO template (id, name, data, created_at, updated_at, deleted_at)
VALUES ($1, $2, $3, $4, $4, NULL)
`, w.ID, w.Name, string(data), time.Now())
if err != nil {
return err
Expand Down

0 comments on commit bb5d9cf

Please sign in to comment.