Ticket #25917: 25917.diff

File 25917.diff, 924 bytes (added by Kai Feldhoff, 9 years ago)

Based on e47f0c1 [1.9.x] Fixed #26136 ...

  • docs/ref/migration-operations.txt

    diff --git a/docs/ref/migration-operations.txt b/docs/ref/migration-operations.txt
    index de7c6cc..c3892fb 100644
    a b RemoveField  
    163163
    164164Removes a field from a model.
    165165
    166 Bear in mind that when reversed this is actually adding a field to a model;
    167 if the field is not nullable this may make this operation irreversible (apart
    168 from any data loss, which of course is irreversible).
     166Bear in mind that when reversed this is actually adding a field to a model. To make this possible, Django needs a default value to populate the recreated empty column. This is only possible for a field that is nullable or has a defined default value.
     167On the other hand if the field is not nullable and does not have a default value, this operation is irreversible (apart from any data loss, which of course is irreversible).
    169168
    170169AlterField
    171170----------
Back to Top