migrate command raises a warning about uncaptured model changes #8548

Closed
opened 2025-12-29 20:38:00 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Aug 31, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.6.0

Python version

3.8

Steps to Reproduce

  1. Run manage.py migrate (which is called by the upgrade script)
  2. Inspect the command output

Expected Behavior

The command should apply any outstanding migrations or return the message "No migrations to apply." without any warnings.

Observed Behavior

The command completes successfully but raises a warning about unreflected model changes:

$ ./manage.py migrate
Operations to perform:
  Apply all migrations: account, admin, auth, circuits, contenttypes, core, dcim, django_rq, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization, wireless
Running migrations:
  No migrations to apply.
  Your models in app(s): 'circuits', 'core', 'dcim', 'extras', 'ipam', 'tenancy', 'users', 'virtualization', 'wireless' have changes that are not yet reflected in a migration, and so won't be applied.
  Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
Originally created by @jeremystretch on GitHub (Aug 31, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.6.0 ### Python version 3.8 ### Steps to Reproduce 1. Run `manage.py migrate` (which is called by the upgrade script) 2. Inspect the command output ### Expected Behavior The command should apply any outstanding migrations or return the message "No migrations to apply." without any warnings. ### Observed Behavior The command completes successfully but raises a warning about unreflected model changes: ``` $ ./manage.py migrate Operations to perform: Apply all migrations: account, admin, auth, circuits, contenttypes, core, dcim, django_rq, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization, wireless Running migrations: No migrations to apply. Your models in app(s): 'circuits', 'core', 'dcim', 'extras', 'ipam', 'tenancy', 'users', 'virtualization', 'wireless' have changes that are not yet reflected in a migration, and so won't be applied. Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them. ```
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 20:38:00 +01:00
adam closed this issue 2025-12-29 20:38:01 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8548