Changes between Initial Version and Version 1 of Ticket #31257


Ignore:
Timestamp:
Feb 11, 2020, 3:34:56 AM (5 years ago)
Author:
Mariusz Felisiak
Comment:

I cannot reproduce this issues with DecimalField or djmoney.models.fields.MoneyField.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31257

    • Property Resolutionworksforme
    • Property Status newclosed
    • Property Summary django migration has not been correctly applied for decimal_places - mysqlMigrations don't apply changes for decimal_places on MySQL.
  • Ticket #31257 – Description

    initial v1  
    11I use mysql in django and have these migration file
    2 ```
     2{{{
    33class Migration(migrations.Migration):
    44
     
    1515    ]
    1616
    17 ```
    18 Migration has been already applied but in db there is still old decimal_places=3 schema
    19 `| jedn_cena          | decimal(12,3) | NO   |     | NULL    |                |
    20 `
     17}}}
    2118
    22 ```
     19Migration has been already applied but in db there is still old `decimal_places=3` schema
     20{{{
     21| jedn_cena          | decimal(12,3) | NO   |     | NULL    |                |
     22}}}
    2323python3 manage.py sqlmigrate ft 0011_auto_20200103_1523
     24{{{
    2425BEGIN;
    2526--
     
    2728--
    2829COMMIT;
    29 
    30 ```
     30}}}
Back to Top