I tried exporting the data to CSV and importing it to the new database, but it does not seem to respect the case sensitivity of column names. "createdAt" becomes "createdat" and does not change even when trying to modify the table. How do I do it correctly?
Question posted in PostgreSQL
The official documentation can be found here.
The official documentation can be found here.
2
Answers
You can use the "dump" and "restore" feature of datagrip which uses "pg_dump" and "pg_restore" behind the scenes, this will respect the case-sensitivity of the column names.
Here are the steps:
Note: If the path to pg_dump or pg_restore is invalid, you can use the "which" command in your terminal and get the correct path from there.
This is an issue related to the character case not being retained in postgres data sources. We have this issue reported here and a fix should be included in the DataGrip 2024.3 version