Skip to content

Commit 54e20e7

Browse files
update .gitignore to include .vscode and clarify naming convention in app initialization
1 parent 8cfa848 commit 54e20e7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ ENV/
1111
env.bak/
1212
venv.bak/
1313

14-
# PyCharm
14+
# Development
1515
.idea/
16+
.vscode
1617

1718
# Others
1819
notes.txt

app/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv("SQLALCHEMY_DATABASE_URI")
1515
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
1616

17-
# PostgreSQL-compatible naming convention
17+
# PostgreSQL-compatible naming convention (to follow the naming convention already used in the DB)
18+
# https://stackoverflow.com/questions/4107915/postgresql-default-constraint-names
1819
naming_convention = {
1920
"ix": "%(table_name)s_%(column_0_name)s_idx", # Indexes
2021
"uq": "%(table_name)s_%(column_0_name)s_key", # Unique constraints

0 commit comments

Comments
 (0)