""" This package contains all the database-related code. This should include, at a minimum, your database models and Alembic migrations. When creating your database, you have two options. The first approach is to bootstrap your database with migrations alone. That is, there is an initial migration that creates all your tables and constraints. The upside to this approach is that a new installation simply runs ``alembic upgrade head`` to create the database and migrate it to the latest revision. The downside is it's difficult to trim migrations periodically. The second approach is to use SQLAlchemy to create new databases and reserve Alembic for migrations to the latest revision only. With this approach, new users don't have to run through every migration you've ever had, and when you wish to trim your migration set, it's as simple as deleting old migrations and setting the ``down_revision`` on the oldest migration you keep to ``None``. This is the approach used in this application. """ from __future__ import unicode_literals from .meta import initialize, Session, Base, Page, BaseQuery # noqa: F401