Skip to content

Commit 998635f

Browse files
authored
Merge pull request #145 from LUS24/leospairani/cou-334-investigate-report-about-code-missmatch-related-to-db
Remove db creation from app.py file in favor of migrations
2 parents d008e89 + e9d50e1 commit 998635f

File tree

1 file changed

+0
-3
lines changed
  • project/06-add-db-migrations

1 file changed

+0
-3
lines changed

project/06-add-db-migrations/app.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ def create_app(db_url=None):
2727
migrate = Migrate(app, db)
2828
api = Api(app)
2929

30-
with app.app_context():
31-
db.create_all()
32-
3330
api.register_blueprint(ItemBlueprint)
3431
api.register_blueprint(StoreBlueprint)
3532
api.register_blueprint(TagBlueprint)

0 commit comments

Comments
 (0)