Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL columns with custom enum types are not being derived. #94

Open
antonklimov opened this issue Sep 27, 2023 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@antonklimov
Copy link

The columns which have enum type in Postgres like
CREATE TYPE t1 as ENUM ('V1', 'V2')
do not appear in the generated schemas.

@tareqimbasher
Copy link
Owner

@antonklimov can you please provide a SQL script to reproduce the issue?

@antonklimov
Copy link
Author

antonklimov commented Nov 3, 2023

@tareqimbasher

CREATE TYPE t1 as ENUM ('V1', 'V2');
CREATE TABLE test1 (
    id int,
    enum_column t1

);
INSERT INTO test1 values (1, 'V1');
SELECT * FROM test1;
image

@tareqimbasher
Copy link
Owner

tareqimbasher commented Nov 15, 2023

Update: It looks like EF Core's scaffolding tool skips ENUM type columns and does not generate CLR properties for them. Since NetPad uses the same EF Core tooling to scaffold your database, it will have the same limitations. I will keep this ticket open however as I believe we could still find a solution around this.

@tareqimbasher tareqimbasher added the enhancement New feature or request label May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants