Last active
June 10, 2022 14:36
-
-
Save phunguyen19/5be7ad256d4d2962c0121311cc4cc671 to your computer and use it in GitHub Desktop.
sql add type if not exist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DO $$ BEGIN | |
| CREATE TYPE public.import_deliveries_delivery_state_enum AS ENUM | |
| ('10', '20'); | |
| EXCEPTION | |
| WHEN duplicate_object THEN null; | |
| END $$; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment