Skip to content

migrate command raises a warning about uncaptured model changes #13642

@jeremystretch

Description

@jeremystretch

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.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions