Added a script to initialize the database
This commit is contained in:
@@ -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
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user