mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
a5579220e0
For some reason, the migration path from unmanaged db (from alembic point-of-view) to managed db, through the initial migration works well with sqlite… But not with mysql where the db system tries to re-create the existing tables. This commit is a way to detect if we are migrating from pre-alembic era and skip the first migration (which would do nothing anyway), marking it as already executed. It's quite hackish but that's the best I found so far to get it working with both MySQL and SQLite. |
||
---|---|---|
.. | ||
migrations | ||
static | ||
templates | ||
translations/fr/LC_MESSAGES | ||
__init__.py | ||
api.py | ||
babel.cfg | ||
default_settings.py | ||
forms.py | ||
manage.py | ||
merged_settings.py | ||
messages.pot | ||
models.py | ||
requirements.txt | ||
run.py | ||
tests.py | ||
utils.py | ||
web.py |