1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00
ihatemoney_ynh/budget
Jocelyn Delande a5579220e0 Fix migrations upgrade path for MySQL
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.
2016-06-18 12:13:46 +02:00
..
migrations Add migration to initialize Person weights 2016-06-16 15:52:24 +02:00
static Hide the member weights in members list if all weights are "1". 2016-06-16 15:52:24 +02:00
templates Hide the member weights in members list if all weights are "1". 2016-06-16 15:52:24 +02:00
translations/fr/LC_MESSAGES Update translation 2016-06-16 15:52:24 +02:00
__init__.py I HAZ TO RUN TESTS BEFORE COMMITING 2011-10-14 15:48:31 +02:00
api.py update for flask 0.9 2013-02-18 19:18:49 +01:00
babel.cfg Translate the application using Flask-babel. 2011-10-15 01:19:19 +02:00
default_settings.py Do not load user-overriden settings in unit tests. 2016-04-03 22:31:32 +02:00
forms.py Added member edit form 2016-06-16 15:52:24 +02:00
manage.py Add a manage.py CLI (flask_script) 2016-05-31 12:10:53 +02:00
merged_settings.py Do not load user-overriden settings in unit tests. 2016-04-03 22:31:32 +02:00
messages.pot Fix translation for password tooltip 2013-10-13 21:51:34 +02:00
models.py Hide the member weights in members list if all weights are "1". 2016-06-16 15:52:24 +02:00
requirements.txt Handle migrations through alembic/flask-Migrations 2016-05-31 12:10:53 +02:00
run.py Fix migrations upgrade path for MySQL 2016-06-18 12:13:46 +02:00
tests.py Hide the member weights in members list if all weights are "1". 2016-06-16 15:52:24 +02:00
utils.py Added a template filter not to show zero decimals on user weights 2016-06-15 10:20:37 +02:00
web.py Added member edit form 2016-06-16 15:52:24 +02:00