This is a reusable plain version the varia library website. You can host your own website of books using just a simple csv file
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
450 B

10 months ago
from flask_migrate import init, migrate, stamp, upgrade
10 months ago
from app import create_app, db
10 months ago
def deploy():
"""Run deployment of database."""
# This model is required for flask_migrate to make the table
from application.models.usermodel import User # noqa: F401
10 months ago
app = create_app()
app.app_context().push()
db.create_all()
# migrate database to latest revision
init()
stamp()
migrate()
upgrade()
deploy()