Skip to content

Lowercase FK when table uses CamelCase #1842

Answered by rkhaotix
dekiesel asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dekiesel

I don't recommend using CamelCase for table names (or any other object in pgModeler). That's because the code generator will always double-quote the identifiers. For example, the table TableA will have the following code CREATE TABLE public."TableA" ...

That can be a real problem for you if you need to constantly type SQL commands to manage your database since PostgreSQL treats differently TableA and "TableA". I recommend the following reading (especially the item 4.1.1):

https://www.postgresql.org/docs/current/sql-syntax-lexical.html

Anyway, to answer the question, you can adjust the names for any object generated by relationships but pgModeler does not change the string cas…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dekiesel
Comment options

Answer selected by dekiesel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants