An ebook/comic library service and web client
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.

10 lines
251 B

  1. """Database configuration and methods."""
  2. from flask_migrate import upgrade
  3. from flask_sqlalchemy import SQLAlchemy
  4. db: SQLAlchemy = SQLAlchemy()
  5. def init_db() -> None:
  6. """Clear existing data and create new tables."""
  7. upgrade('migrations')