Email SMTP Fix
This commit is contained in:
11
fix_enum.sql
Normal file
11
fix_enum.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- Add pending_approval to the userstatus enum if it doesn't exist
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (
|
||||
SELECT 1 FROM pg_enum
|
||||
WHERE enumlabel = 'pending_approval'
|
||||
AND enumtypid = (SELECT oid FROM pg_type WHERE typname = 'userstatus')
|
||||
) THEN
|
||||
ALTER TYPE userstatus ADD VALUE 'pending_approval' BEFORE 'pre_approved';
|
||||
END IF;
|
||||
END$$;
|
||||
Reference in New Issue
Block a user