-
Notifications
You must be signed in to change notification settings - Fork 181
How to disable lowercase for models, tables and fields? #116
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
Comments
@crandmck Do we have docs explaining how to convert case or whether it's possible or not? |
No, we don't have docs for specifying table name case preferences for auto-migration, and:
@raymondfeng would know. |
@crandmck, And fork with changes to fix some parts of the problem: Any chance to merge? |
Also I found bug with My module versions: |
@Sogl It looks like #38 covers this bug. You can ask @raymondfeng about merging it. Re: the above bug, please open a separate issue. I'll close this one. |
@crandmck Hi is this issue is resolved?, because i got the same issue in the version 2.8.0. |
I don't know. Maybe @raymondfeng knows? |
I've found a simple solution to keeping mixed case that doesn't require modifying the connector source. I am running version 3.1.0 of loopback-connector-postgresql Example: In a boot script (server/boot/z_my_script.js):
I also have a call to DataSource.discoverAndBuildModels which I used to generate a model for a database view. That, too, has issues with case that can be solved by explicitly passing nameMapper:null as below:
|
Hi!
I use loopback with my postgres DB and found a problem. All my models, tables and fields become lowercase.
What I create in

arc
:And finally what I see in DB after pressing

Migrate Model
button:I use CamelCase and for me it's very bad moment.
The text was updated successfully, but these errors were encountered: