diff --git a/internal/relui/migrations/20220609175710_remove_corrupt_workflow.down.sql b/internal/relui/migrations/20220609175710_remove_corrupt_workflow.down.sql new file mode 100644 index 0000000000..dbfc3f7b0b --- /dev/null +++ b/internal/relui/migrations/20220609175710_remove_corrupt_workflow.down.sql @@ -0,0 +1,5 @@ +-- Copyright 2021 The Go Authors. All rights reserved. +-- Use of this source code is governed by a BSD-style +-- license that can be found in the LICENSE file. + +-- non-reversible migration diff --git a/internal/relui/migrations/20220609175710_remove_corrupt_workflow.up.sql b/internal/relui/migrations/20220609175710_remove_corrupt_workflow.up.sql new file mode 100644 index 0000000000..299aa5e676 --- /dev/null +++ b/internal/relui/migrations/20220609175710_remove_corrupt_workflow.up.sql @@ -0,0 +1,19 @@ +-- Copyright 2021 The Go Authors. All rights reserved. +-- Use of this source code is governed by a BSD-style +-- license that can be found in the LICENSE file. + +BEGIN; + +DELETE +FROM task_logs +WHERE workflow_id = 'e7cb64ec-91b1-47fa-b962-2b2f034c458c'; + +DELETE +FROM tasks +WHERE workflow_id = 'e7cb64ec-91b1-47fa-b962-2b2f034c458c'; + +DELETE +FROM workflows +WHERE id = 'e7cb64ec-91b1-47fa-b962-2b2f034c458c'; + +COMMIT;