Skip to content

Commit 80529a3

Browse files
attempt fix (#265)
2 parents bce2d37 + 6dbaac0 commit 80529a3

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

labconnect/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def initialize_extensions(app) -> None:
5555
# Since the application instance is now created, pass it to each Flask
5656
# extension instance to bind it to the Flask application instance (app)
5757
db.init_app(app)
58+
db.create_all()
5859
migrate.init_app(app, db)
5960
jwt.init_app(app)
6061
app.json = OrJSONProvider(app)

labconnect/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,4 +390,3 @@ class RecommendsClassYears(db.Model):
390390
)
391391
year = db.relationship("ClassYears", back_populates="opportunities")
392392

393-
db.create_all()

0 commit comments

Comments
 (0)