runtipi/packages/worker/assets/migrations/00003-add-status-updating.sql

16 lines
305 B
MySQL
Raw Normal View History

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
$$;