Changes between Version 1 and Version 2 of Ticket #31665


Ignore:
Timestamp:
Jun 5, 2020, 9:18:31 AM (4 years ago)
Author:
shadytradesman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31665

    • Property Summary Auto-migrations fail on postgres when resizing Charfield and setting default value longer than old constraintAuto-migrations fail on postgres when Charfield's default value is longer than old constraint
  • Ticket #31665 – Description

    v1 v2  
    5555
    5656
    57 This migration appeared to work on mysql when I was developing locally, but it may be because I updated the random_string() function to provide a string that was longer after I ran the migration. It failed when I ran it against my prod Postgres 9.5.15 database.
     57This migration worked on mysql when I was developing locally, but it was because I updated the random_string() function to provide a string that was longer after I ran the migration. It failed when I ran it against my prod Postgres 9.5.15 database.
     58
     59I suggest including default_value functions in the migrations so that when old migrations are run against new code, you don't have issues.
Back to Top