Skip to content

Commit

Permalink
ZCS-11064: add migration script for zimbra.zmg_devices table
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeprashant committed Nov 17, 2021
1 parent aa22561 commit d63e713
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
1 change: 1 addition & 0 deletions instructions/bundling-scripts/zimbra-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ main()
Copy ${repoDir}/zm-db-conf/src/db/migration/migrate20200625-MobileDevices.pl ${repoDir}/zm-build/${currentPackage}/opt/zimbra/libexec/scripts/migrate20200625-MobileDevices.pl
Copy ${repoDir}/zm-db-conf/src/db/migration/migrate20210319-MobileDevices.pl ${repoDir}/zm-build/${currentPackage}/opt/zimbra/libexec/scripts/migrate20210319-MobileDevices.pl
Copy ${repoDir}/zm-db-conf/src/db/migration/migrate20210809-UnsubscribeFolder.pl ${repoDir}/zm-build/${currentPackage}/opt/zimbra/libexec/scripts/migrate20210809-UnsubscribeFolder.pl
Copy ${repoDir}/zm-db-conf/src/db/migration/migrate20211116-MobileNotificationDevices.pl ${repoDir}/zm-build/${currentPackage}/opt/zimbra/libexec/scripts/migrate20211116-MobileNotificationDevices.pl
Copy ${repoDir}/zm-db-conf/src/db/migration/migrateAmavisLdap20050810.pl ${repoDir}/zm-build/${currentPackage}/opt/zimbra/libexec/scripts/migrateAmavisLdap20050810.pl
Copy ${repoDir}/zm-db-conf/src/db/migration/migrateClearSpamFlag.pl ${repoDir}/zm-build/${currentPackage}/opt/zimbra/libexec/scripts/migrateClearSpamFlag.pl
Copy ${repoDir}/zm-db-conf/src/db/migration/migrateLargeMetadata.pl ${repoDir}/zm-build/${currentPackage}/opt/zimbra/libexec/scripts/migrateLargeMetadata.pl
Expand Down
31 changes: 16 additions & 15 deletions rpmconf/Upgrade/zmupgrade.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ chomp $rundir;
my $scriptDir = "/opt/zimbra/libexec/scripts";

my $lowVersion = 52;
my $hiVersion = 114; # this should be set to the DB version expected by current server code
my $hiVersion = 115; # this should be set to the DB version expected by current server code

my $needSlapIndexing = 0;
my $mysqlcnfUpdated = 0;
Expand Down Expand Up @@ -76,20 +76,21 @@ my %updateScripts = (
'91' => "migrate20121009-VolumeBlobs.pl", # 8.0.1
'92' => "migrate20130226_alwayson.pl", # 8.5.0
# 93-99 skipped for possible IRONMAIDEN use
'100' => "migrate20140319-MailItemPrevFolders.pl", # 8.5.0
'101' => "migrate20140328-EnforceTableCharset.pl", #8.5.0
'102' => "migrate20140624-DropMysqlIndexes.pl", #8.5.0
'103' => "migrate20150401-ZmgDevices.pl", #8.7.0
'104' => "migrate20150515-DataSourcePurgeTables.pl", #8.7.0
'105' => "migrate20150623-ZmgDevices.pl", #8.7.0
'106' => "migrate20150702-ZmgDevices.pl", #8.7.0
'107' => "migrate20170301-ZimbraChat.pl", #8.7.6
'108' => "migrate20180301-ZimbraChat.pl", #8.8.8
'109' => "migrate20190401-ZimbraChat.pl", #8.8.15
'110' => "migrate20190611-ZimbraChat.pl", #8.8.15
'111' => "migrate20210506-BriefcaseApi.pl", #9.1.0
'112' => "migrate20200625-MobileDevices.pl", #Zimbra X
'113' => "migrate20210319-MobileDevices.pl", #Zimbra X
'100' => "migrate20140319-MailItemPrevFolders.pl", # 8.5.0
'101' => "migrate20140328-EnforceTableCharset.pl", #8.5.0
'102' => "migrate20140624-DropMysqlIndexes.pl", #8.5.0
'103' => "migrate20150401-ZmgDevices.pl", #8.7.0
'104' => "migrate20150515-DataSourcePurgeTables.pl", #8.7.0
'105' => "migrate20150623-ZmgDevices.pl", #8.7.0
'106' => "migrate20150702-ZmgDevices.pl", #8.7.0
'107' => "migrate20170301-ZimbraChat.pl", #8.7.6
'108' => "migrate20180301-ZimbraChat.pl", #8.8.8
'109' => "migrate20190401-ZimbraChat.pl", #8.8.15
'110' => "migrate20190611-ZimbraChat.pl", #8.8.15
'111' => "migrate20210506-BriefcaseApi.pl", #9.1.0
'112' => "migrate20200625-MobileDevices.pl", #Zimbra X
'113' => "migrate20210319-MobileDevices.pl", #Zimbra X
'115' => "migrate20211116-MobileNotificationDevices.pl", #9.1.0
);

my %updateFuncs = (
Expand Down

0 comments on commit d63e713

Please sign in to comment.