Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Model/Entity Generation for Postgres is not working for columns declared with Custom Type and DEFAULT expression #306

Open
acisser opened this issue Nov 7, 2020 · 0 comments
Labels
bug no known workaround

Comments

@acisser
Copy link

acisser commented Nov 7, 2020

Generation is breaking with a SyntaxError Message

Source DDL for column definition in CREATE TABLE
estate cms."MedicStateType" NOT NULL DEFAULT 'V',

Generated TypeORM Mapping
@column("enum",{ name:"estate",enum:["V","I"],default: () => "'V'."MedicStateType"", })

I guess there is some sort of issue in the quotation of the generated mapping ("'V'."MedicStateType"")

@acisser acisser changed the title Model/Entity Generation for Postgres is not working for columns with Types and DEFAULT declaration Model/Entity Generation for Postgres is not working for columns declared with Custom Type and DEFAULT expression Nov 7, 2020
@Kononnable Kononnable added the bug no known workaround label Nov 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug no known workaround
Projects
None yet
Development

No branches or pull requests

2 participants