Skip to content

Commit 0fd347a

Browse files
fix: add prebuild_status migration
1 parent 08b18b0 commit 0fd347a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Remove the column from the table first (must happen before dropping the enum type)
2+
ALTER TABLE template_version_presets DROP COLUMN prebuild_status;
3+
4+
-- Then drop the enum type
5+
DROP TYPE prebuild_status;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CREATE TYPE prebuild_status AS ENUM (
2+
'normal', -- Prebuilds are working as expected; this is the default, healthy state.
3+
'hard_limited', -- Prebuilds have failed repeatedly and hit the configured hard failure limit; won't be retried anymore.
4+
'validation_failed' -- Prebuilds failed due to a non-retryable validation error (e.g. template misconfiguration); won't be retried.
5+
);
6+
7+
ALTER TABLE template_version_presets ADD COLUMN prebuild_status prebuild_status DEFAULT 'normal';

0 commit comments

Comments
 (0)