Skip to content
Snippets Groups Projects
Commit 2ebe448a authored by nd's avatar nd Committed by nd
Browse files

move db migrations inside the uffd folder

parent 1854bd70
Branches
Tags
No related merge requests found
Showing
with 3 additions and 3 deletions
include setup.py include setup.py
graft migrations/* graft uffd/migrations
graft uffd/templates graft uffd/templates
graft uffd/*/templates graft uffd/*/templates
graft uffd/static/ graft uffd/static/
graft uffd/translations/ graft uffd/translations
...@@ -62,7 +62,7 @@ def create_app(test_config=None): # pylint: disable=too-many-locals ...@@ -62,7 +62,7 @@ def create_app(test_config=None): # pylint: disable=too-many-locals
os.makedirs(app.instance_path, exist_ok=True) os.makedirs(app.instance_path, exist_ok=True)
db.init_app(app) db.init_app(app)
Migrate(app, db, render_as_batch=True) Migrate(app, db, render_as_batch=True, directory='uffd/migrations')
# pylint: disable=C0415 # pylint: disable=C0415
from uffd import user, selfservice, role, mail, session, csrf, mfa, oauth2, services, signup, rolemod, invite, api from uffd import user, selfservice, role, mail, session, csrf, mfa, oauth2, services, signup, rolemod, invite, api
# pylint: enable=C0415 # pylint: enable=C0415
......
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment