Changes between Version 1 and Version 2 of Ticket #34988, comment 1
- Timestamp:
- Nov 22, 2023, 7:18:41 AM (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34988, comment 1
v1 v2 7 7 {{{ 8 8 django-sample % dj makemigrations ticket_34988_app_1 9 It is impossible to add a non-nullable field ' foo' to app2without specifying a default. This is because the database needs something to populate existing rows.9 It 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. 10 10 Please select a fix: 11 11 1) Provide a one-off default now (will be set on all existing rows with a null value for this column) … … 16 16 Type 'exit' to exit this prompt 17 17 >>> 1 18 It is impossible to add a non-nullable field ' bar' to app1without specifying a default. This is because the database needs something to populate existing rows.18 It 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. 19 19 Please select a fix: 20 20 1) Provide a one-off default now (will be set on all existing rows with a null value for this column) … … 26 26 >>> 1 27 27 Migrations for 'ticket_34988_app_1': 28 ticket_34988_app_1/migrations/0002_app 2_foo.py29 - Add field foo to app228 ticket_34988_app_1/migrations/0002_app1model_app_1_field.py 29 - Add field app_1_field to app1model 30 30 31 31 django-sample % dj makemigrations ticket_34988_app_1 32 It is impossible to add a non-nullable field ' bar' to app1without specifying a default. This is because the database needs something to populate existing rows.32 It 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. 33 33 Please select a fix: 34 34 1) Provide a one-off default now (will be set on all existing rows with a null value for this column)