Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (env) Kajs-MacBook-Pro:umesee kajnygren$ python manage.py makemigrations
- You are trying to change the nullable field 'company' on accounting to non-nullable without a default; we can't do that (the database needs something to populate existing rows).
- Please select a fix:
- 1) Provide a one-off default now (will be set on all existing rows with a null value for this column)
- 2) Ignore for now, and let me handle existing rows with NULL myself (e.g. because you added a RunPython or RunSQL operation to handle NULL values in a previous data migration)
- 3) Quit, and let me add a default in models.py
- Select an option: 1
- Please enter the default value now, as valid Python
- The datetime and django.utils.timezone modules are available, so you can do e.g. timezone.now
- Type 'exit' to exit this prompt
- >>> 1
- You are trying to change the nullable field 'accounting' on accountingdata to non-nullable without a default; we can't do that (the database needs something to populate existing rows).
- Please select a fix:
- 1) Provide a one-off default now (will be set on all existing rows with a null value for this column)
- 2) Ignore for now, and let me handle existing rows with NULL myself (e.g. because you added a RunPython or RunSQL operation to handle NULL values in a previous data migration)
- 3) Quit, and let me add a default in models.py
- Select an option: 1
- Please enter the default value now, as valid Python
- The datetime and django.utils.timezone modules are available, so you can do e.g. timezone.now
- Type 'exit' to exit this prompt
- >>> 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement