Skip to content

PostgreSQL table with enum column and default value #286

Closed
@foarsitter

Description

@foarsitter

Thank you for your beautiful piece of work!

Parsing a table with an enum column with a default results in a missing table. Removing the default solves this problem.

Here is a minimum viable DDL:

CREATE TYPE public.blog_categories_visibility AS ENUM (
    'public',
    'protected',
    'private'
);

CREATE TABLE public.blog_categories (
    id integer NOT NULL,
    client_id integer,
    name character varying(255),
    slug character varying(255),
    color character varying(16),
    published boolean DEFAULT true NOT NULL,
    visibility public.blog_categories_visibility DEFAULT 'public'::public.blog_categories_visibility NOT NULL,
    filter_id integer
);

Thanks again!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions