Added a script to initialize the database

This commit is contained in:
xemeds
2020-07-23 17:41:56 +00:00
parent 962f352917
commit ce7d775f72
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
tiny0/__pycache__
tiny0/database.db
+4
View File
@@ -9,4 +9,8 @@ app.config['SQLALCHEMY_DATABASE_URI'] = SQLALCHEMY_DATABASE_URI
db = SQLAlchemy(app)
# Initialize the database
from tiny0.models import URL
db.create_all()
from tiny0 import routes
BIN
View File
Binary file not shown.