From 975c81314d2ca6e505d29a5c3c8ce4fcc80c80ea Mon Sep 17 00:00:00 2001 From: Deer-Warlord Date: Wed, 8 Nov 2023 17:38:42 +0200 Subject: [PATCH] update migration schemas --- Products/ZenModel/migrate/addzNoRelationshipCopy.py | 3 +-- Products/ZenModel/migrate/zensyslogSvcDefForMsgFiltering.py | 4 +--- Products/ZenModel/migrate/zensyslogSvcDefForMsgParsing.py | 4 +--- Products/ZenModel/migrate/zentrapSvcDefForFiltering.py | 5 +---- SCHEMA_VERSION | 2 +- 5 files changed, 5 insertions(+), 13 deletions(-) diff --git a/Products/ZenModel/migrate/addzNoRelationshipCopy.py b/Products/ZenModel/migrate/addzNoRelationshipCopy.py index eab05621a4..14af8af737 100644 --- a/Products/ZenModel/migrate/addzNoRelationshipCopy.py +++ b/Products/ZenModel/migrate/addzNoRelationshipCopy.py @@ -13,13 +13,12 @@ import logging import Migrate -from Products.ZenModel.ZMigrateVersion import SCHEMA_MAJOR, SCHEMA_MINOR, SCHEMA_REVISION log = logging.getLogger("zen.migrate") class addzNoRelationshipCopy(Migrate.Step): - version = Migrate.Version(SCHEMA_MAJOR, SCHEMA_MINOR, SCHEMA_REVISION) + version = Migrate.Version(300, 2, 0) def cutover(self, dmd): if not hasattr(dmd.Devices, "zNoRelationshipCopy"): diff --git a/Products/ZenModel/migrate/zensyslogSvcDefForMsgFiltering.py b/Products/ZenModel/migrate/zensyslogSvcDefForMsgFiltering.py index 58daecef1c..484b59fb87 100644 --- a/Products/ZenModel/migrate/zensyslogSvcDefForMsgFiltering.py +++ b/Products/ZenModel/migrate/zensyslogSvcDefForMsgFiltering.py @@ -21,8 +21,6 @@ from servicemigration.metrics import Metric from servicemigration.graphdatapoint import GraphDatapoint -from Products.ZenModel.ZMigrateVersion import SCHEMA_MAJOR, SCHEMA_MINOR, SCHEMA_REVISION - log = logging.getLogger("zen.migrate") svcNamesToUpdate = ['zensyslog'] @@ -34,7 +32,7 @@ class ZensyslogSvcDevForMsgParsing(Migrate.Step): add 'Filter Dropped Events' to zensyslog 'Events' graph ''' - version = Migrate.Version(SCHEMA_MAJOR, SCHEMA_MINOR, SCHEMA_REVISION) + version = Migrate.Version(300, 2, 0) def cutover(self, dmd): try: diff --git a/Products/ZenModel/migrate/zensyslogSvcDefForMsgParsing.py b/Products/ZenModel/migrate/zensyslogSvcDefForMsgParsing.py index a69d8b98c2..652d2d8aff 100644 --- a/Products/ZenModel/migrate/zensyslogSvcDefForMsgParsing.py +++ b/Products/ZenModel/migrate/zensyslogSvcDefForMsgParsing.py @@ -21,8 +21,6 @@ from servicemigration.metrics import Metric from servicemigration.graphdatapoint import GraphDatapoint -from Products.ZenModel.ZMigrateVersion import SCHEMA_MAJOR, SCHEMA_MINOR, SCHEMA_REVISION - log = logging.getLogger("zen.migrate") svcNamesToUpdate = ['zensyslog'] @@ -34,7 +32,7 @@ class ZensyslogSvcDevForMsgParsing(Migrate.Step): add 'Parser Dropped Events' to zensyslog 'Events' graph ''' - version = Migrate.Version(SCHEMA_MAJOR, SCHEMA_MINOR, SCHEMA_REVISION) + version = Migrate.Version(300, 2, 0) def cutover(self, dmd): try: diff --git a/Products/ZenModel/migrate/zentrapSvcDefForFiltering.py b/Products/ZenModel/migrate/zentrapSvcDefForFiltering.py index c05b27557a..a4ad965618 100644 --- a/Products/ZenModel/migrate/zentrapSvcDefForFiltering.py +++ b/Products/ZenModel/migrate/zentrapSvcDefForFiltering.py @@ -24,9 +24,6 @@ from servicemigration.graphconfig import GraphConfig from servicemigration.graphdatapoint import GraphDatapoint -from Products.ZenModel.ZMigrateVersion import SCHEMA_MAJOR, SCHEMA_MINOR, SCHEMA_REVISION - - log = logging.getLogger("zen.migrate") svcNamesToUpdate = ['zentrap'] sm.require("1.0.0") @@ -37,7 +34,7 @@ class ZentrapSvcDevForMsgParsing(Migrate.Step): add 'Filter Dropped Events' to zentrap 'Events' graph ''' - version = Migrate.Version(SCHEMA_MAJOR, SCHEMA_MINOR, SCHEMA_REVISION) + version = Migrate.Version(300, 2, 0) def cutover(self, dmd): try: diff --git a/SCHEMA_VERSION b/SCHEMA_VERSION index e47da960f0..e260ec044d 100644 --- a/SCHEMA_VERSION +++ b/SCHEMA_VERSION @@ -1 +1 @@ -300.1.0 +300.2.0