-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Check table names before creating them #52
Comments
That’s a good idea, but maybe that should be a driver logic, once there’s didiferente reserved words for different databases. |
But there's a module for common SQL things, right? Stuff like not using
dashes should maybe go there.
|
Sure, but that should be extensible for specific drivers... but today the “-“ on a model type name is converted to “_”... it will only happens a table with “-“ on its name if some one do: model Bla is table<name-with-dash> {...} |
In my example,
|
The regex only works if the letter behind the dash is in caps, apparently. |
You are right! |
I think this fixes the principal problem, but it would be great to test the reserved words for each driver. Thanks! |
Done! thanks! |
Some table names are not acceptable, like the ones with
-
or, for some reason, "commit". Document acceptable table names and check for them in thecreate-table
meta-method.The text was updated successfully, but these errors were encountered: