chore: remove unnecessary fields from containers table in machine.db

This commit is contained in:
Pavel Sviderski
2025-04-23 16:11:29 +10:00
parent 440215b811
commit d8818ba770
2 changed files with 2 additions and 8 deletions
+2 -3
View File
@@ -527,9 +527,8 @@ func (s *Server) CreateServiceContainer(
return nil, status.Errorf(codes.Internal, "marshal service spec: %v", err)
}
if _, err = s.db.ExecContext(ctx,
`INSERT INTO containers (id, service_id, service_spec) VALUES ($1, $2, $3)`,
resp.ID, req.ServiceId, string(specBytes)); err != nil {
if _, err = s.db.ExecContext(ctx, `INSERT INTO containers (id, service_spec) VALUES ($1, $2)`,
resp.ID, string(specBytes)); err != nil {
removeContainer()
return nil, status.Errorf(codes.Internal, "store container in database: %v", err)
}