-
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
chaffeqa
added a commit
to chaffeqa/schemats
that referenced
this issue
Aug 20, 2018
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. |
maranomynet
added a commit
to maranomynet/mysql-schema-ts
that referenced
this issue
Jan 14, 2021
Fixes a column-name issue that seems to affect mysql@8 See description/info here: SweetIQ/schemats#97
nettofarah
pushed a commit
to nettofarah/mysql-schema-ts
that referenced
this issue
Feb 20, 2021
Fixes a column-name issue that seems to affect mysql@8 See description/info here: SweetIQ/schemats#97
nettofarah
added a commit
to nettofarah/mysql-schema-ts
that referenced
this issue
Sep 8, 2021
) * 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]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: