Added a script to initialize the database
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
tiny0/__pycache__
|
tiny0/__pycache__
|
||||||
|
tiny0/database.db
|
||||||
|
|||||||
@@ -9,4 +9,8 @@ app.config['SQLALCHEMY_DATABASE_URI'] = SQLALCHEMY_DATABASE_URI
|
|||||||
|
|
||||||
db = SQLAlchemy(app)
|
db = SQLAlchemy(app)
|
||||||
|
|
||||||
|
# Initialize the database
|
||||||
|
from tiny0.models import URL
|
||||||
|
db.create_all()
|
||||||
|
|
||||||
from tiny0 import routes
|
from tiny0 import routes
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user