runtipi/packages/worker/assets/migrations/00003-add-status-updating.sql
2023-11-16 20:49:27 +01:00

15 lines
305 B
SQL

DO $$
BEGIN
IF NOT EXISTS (
SELECT
1
FROM
pg_enum
WHERE
enumlabel = 'updating'::text
AND enumtypid = 'public.app_status_enum'::regtype) THEN
ALTER TYPE "public"."app_status_enum"
ADD VALUE 'updating';
END IF;
END
$$;