Skip to content

Commit e37ff88

Browse files
committed
fix(CI/CD)/db-initialization-4
1 parent 2a5ca02 commit e37ff88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generated-flask-server/openapi_server/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def metrics_endpoint():
6767

6868
def initialize_database():
6969
with app.app_context():
70-
if not os.path.exists('migrations'):
70+
if not os.path.exists('migrations/env.py'):
7171
init(directory='migrations')
7272
else:
7373
logger.debug("Migrations directory already exists")

0 commit comments

Comments
 (0)