nautobot-app-device-lifecycle-mgmt icon indicating copy to clipboard operation
nautobot-app-device-lifecycle-mgmt copied to clipboard

Migrations not reversible

Open whitej6 opened this issue 1 year ago • 3 comments

Environment

  • Python version: 3.11
  • Nautobot version: 2.1.x
  • nautobot-device-lifecycle-mgmt version: latest

Expected Behavior

nautobot-server migrate nautobot_device_lifecycle_mgmt zero

Observed Behavior

Following migrations do not have a reverse_code

  • 0019
  • 0017
  • 0008

Following tables need to be empty to be able to be reversible

  • 0004_squash__0004_0014_0015_0016 - nautobot_device_lifecycle_mgmt_validatedsoftwarelcm

Steps to Reproduce

whitej6 avatar Mar 13 '24 18:03 whitej6

0004_squash__0004_0014_0015_0016 - causes problems on migrate zero, after migrate zero this entry many need to be manually removed from the django_migrations table.

whitej6 avatar Mar 13 '24 18:03 whitej6

Also affected by this, I believe - 0019_cve_and_contract_m2m_migration is not reversible when nautobot-server migrate nautobot_device_lifecycle_mgmt zero

chris-tomkins-flexgrid avatar Jun 21 '24 09:06 chris-tomkins-flexgrid

We're going to constrain the scope of this story to addressing the missing reverse_code. The squash migration will be a separate fix.

bryanculver avatar Sep 27 '24 17:09 bryanculver