This commit is contained in:
Stefano Pigozzi
2018-05-02 16:32:16 +02:00
parent cca22443ee
commit 7ce44fc076
2 changed files with 2 additions and 6 deletions

View File

@@ -292,8 +292,4 @@ class OrderItem(TableDeclarativeBase):
return f"<OrderItem {self.item_id}>"
# If this script is ran as main, try to create all the tables in the database
if __name__ == "__main__":
print("Creating tables...")
TableDeclarativeBase.metadata.create_all()
print("Done!")
TableDeclarativeBase.metadata.create_all()