Changes between Version 1 and Version 2 of Ticket #34988, comment 1


Ignore:
Timestamp:
Nov 22, 2023, 7:18:41 AM (12 months ago)
Author:
David Sanders

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34988, comment 1

    v1 v2  
    77{{{
    88django-sample % dj makemigrations ticket_34988_app_1
    9 It is impossible to add a non-nullable field 'foo' to app2 without specifying a default. This is because the database needs something to populate existing rows.
     9It is impossible to add a non-nullable field 'app_1_field' to app1model without specifying a default. This is because the database needs something to populate existing rows.
    1010Please select a fix:
    1111 1) Provide a one-off default now (will be set on all existing rows with a null value for this column)
     
    1616Type 'exit' to exit this prompt
    1717>>> 1
    18 It is impossible to add a non-nullable field 'bar' to app1 without specifying a default. This is because the database needs something to populate existing rows.
     18It is impossible to add a non-nullable field 'app_2_field' to app2model without specifying a default. This is because the database needs something to populate existing rows.
    1919Please select a fix:
    2020 1) Provide a one-off default now (will be set on all existing rows with a null value for this column)
     
    2626>>> 1
    2727Migrations for 'ticket_34988_app_1':
    28   ticket_34988_app_1/migrations/0002_app2_foo.py
    29     - Add field foo to app2
     28  ticket_34988_app_1/migrations/0002_app1model_app_1_field.py
     29    - Add field app_1_field to app1model
    3030
    3131django-sample % dj makemigrations ticket_34988_app_1
    32 It is impossible to add a non-nullable field 'bar' to app1 without specifying a default. This is because the database needs something to populate existing rows.
     32It is impossible to add a non-nullable field 'app_2_field' to app2model without specifying a default. This is because the database needs something to populate existing rows.
    3333Please select a fix:
    3434 1) Provide a one-off default now (will be set on all existing rows with a null value for this column)
Back to Top