DO $$
BEGIN
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'UserRole') THEN
CREATE TYPE "UserRole" AS ENUM ('USER', 'ADMIN', 'TEMP');
END IF;
END$$;
For further actions, you may consider blocking this person and/or reporting abuse
DO $$
BEGIN
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'UserRole') THEN
CREATE TYPE "UserRole" AS ENUM ('USER', 'ADMIN', 'TEMP');
END IF;
END$$;
For further actions, you may consider blocking this person and/or reporting abuse
Emmanuel Ezeh -
JetThoughts Dev -
Mofajjal Rasul -
Auden -
Top comments (0)