﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31257	Migrations don't apply changes for decimal_places on MySQL.	Zbynek Drlik	nobody	"I use mysql in django and have these migration file
{{{
class Migration(migrations.Migration):

    dependencies = [
        ('ft', '0010_auto_20191027_2255'),
    ]

    operations = [
        migrations.AlterField(
            model_name='polozkydokl',
            name='jedn_cena',
            field=djmoney.models.fields.MoneyField(decimal_places=4, default=Decimal('0'), default_currency='EUR', max_digits=12, verbose_name='Jednotková cena'),
        ),
    ]

}}}

Migration has been already applied but in db there is still old `decimal_places=3` schema
{{{
| jedn_cena          | decimal(12,3) | NO   |     | NULL    |                |
}}}
python3 manage.py sqlmigrate ft 0011_auto_20200103_1523
{{{
BEGIN;
--
-- Alter field jedn_cena on polozkydokl
--
COMMIT;
}}}"	Bug	closed	Migrations	2.2	Normal	worksforme			Unreviewed	0	0	0	0	0	0
