Skip to content

Commit

Permalink
Merge pull request #250 from nautobot/migration2.0-fix
Browse files Browse the repository at this point in the history
Fix 2.0 migrations
  • Loading branch information
bradh11 authored Nov 6, 2023
2 parents 825190a + e636966 commit 1832253
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## [v2.0.2] - 2023-11-06

Note: This release fixes an issue with upgrading this plugin from 1.x version to 2.x versions.

### Fixed
- [#250](https://github.com/nautobot/nautobot-plugin-device-lifecycle-mgmt/pull/250) - Fix issue with migrations in 2.0.1 causing issues with upgrading plugin from 1.x versions.


## [v2.0.1] - 2023-10-31
Note: This release fixes an issue with clean installations of this plugin on Nautobot 2.0.X environments.
Expand Down
8 changes: 8 additions & 0 deletions docs/admin/release_notes/version_2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ This document describes all new features and changes in the release `2.0`. The f

This release adds support for [Nautobot v2.0.0](https://github.com/nautobot/nautobot/releases/tag/v2.0.0).

## [v2.0.2] - 2023-11-06

Note: This release fixes an issue with upgrading this plugin from 1.x version to 2.x versions.

### Fixed
- [#250](https://github.com/nautobot/nautobot-plugin-device-lifecycle-mgmt/pull/250) - Fix issue with migrations in 2.0.1 causing issues with upgrading plugin from 1.x versions.


## [v2.0.1] - 2023-10-31
Note: This release fixes an issue with clean installations of this plugin on Nautobot 2.0.X environments.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, name, app_label):
if self.nautobot_run_before:
recorder = migrations.recorder.MigrationRecorder(connection)
applied_migrations = recorder.applied_migrations()
if ("nautobot_device_onboarding", "0004_validated_software_m2m") in applied_migrations:
if ("nautobot_device_lifecycle_mgmt", "0004_validated_software_m2m") in applied_migrations:
for migration in self.nautobot_run_before:
if migration not in applied_migrations:
self.run_before.append(migration)

0 comments on commit 1832253

Please sign in to comment.