-
Notifications
You must be signed in to change notification settings - Fork 103
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
TypeError: Cannot read property 'replace' of undefined #97
Comments
The issue was `enumItem` looks like: ``` RowDataPacket { COLUMN_NAME: 'gameType', COLUMN_TYPE: 'enum(\'BRACKET\',\'PICKEM\')', DATA_TYPE: 'enum' } ``` I'm sure there is a nicer + tested solution, but unfortunately I don't have the time to submit that, sorry!
Looks like it is related to MySql 8, It has tables & columns with an uppercase. |
Fixes a column-name issue that seems to affect mysql@8 See description/info here: SweetIQ/schemats#97
Fixes a column-name issue that seems to affect mysql@8 See description/info here: SweetIQ/schemats#97
) * Rename selected columns to guarantee correct case Fixes a column-name issue that seems to affect mysql@8 See description/info here: SweetIQ/schemats#97 * fix: Assume that a "auto_increment"-ing non-nullable column "hasDefault" This makes sure that primary key "id" fields are flagged as optional for inserts. Co-authored-by: Netto Farah <[email protected]>
Fixes a column-name issue that seems to affect mysql@8 See description/info here: SweetIQ/schemats#97
Just installed v3.0.3 and I'm getting this same error with MySQL 8 |
Given the above, and the lack of maintenance of this project, I'm now using this to generate types for MySQL 8 |
I'm maintaining a Fork of it |
Interesting. I presume this bug is fixed in your version? One limitation of the version of I'm trying to find an example output from schemats (this or yours). Could you point me to one for MySQL? |
It generates schema types, meaning, tables and each column type... |
I get the following error:
I just installed schemats with
npm install -g schemats
and my table looks like this:
My database installation:
The text was updated successfully, but these errors were encountered: