Skip to content

Commit

Permalink
update migration schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Deer-WarLord committed Nov 8, 2023
1 parent 98599e2 commit 975c813
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
3 changes: 1 addition & 2 deletions Products/ZenModel/migrate/addzNoRelationshipCopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down
4 changes: 1 addition & 3 deletions Products/ZenModel/migrate/zensyslogSvcDefForMsgFiltering.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions Products/ZenModel/migrate/zensyslogSvcDefForMsgParsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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:
Expand Down
5 changes: 1 addition & 4 deletions Products/ZenModel/migrate/zentrapSvcDefForFiltering.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion SCHEMA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
300.1.0
300.2.0

0 comments on commit 975c813

Please sign in to comment.