We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cfa848 commit 54e20e7Copy full SHA for 54e20e7
.gitignore
@@ -11,8 +11,9 @@ ENV/
11
env.bak/
12
venv.bak/
13
14
-# PyCharm
+# Development
15
.idea/
16
+.vscode
17
18
# Others
19
notes.txt
app/__init__.py
@@ -14,7 +14,8 @@
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv("SQLALCHEMY_DATABASE_URI")
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
-# PostgreSQL-compatible naming convention
+# PostgreSQL-compatible naming convention (to follow the naming convention already used in the DB)
+# https://stackoverflow.com/questions/4107915/postgresql-default-constraint-names
naming_convention = {
20
"ix": "%(table_name)s_%(column_0_name)s_idx", # Indexes
21
"uq": "%(table_name)s_%(column_0_name)s_key", # Unique constraints
0 commit comments