converting nav and more asset manager fixes
This commit is contained in:
parent
63345d79fe
commit
a287beda58
19 changed files with 1206 additions and 556 deletions
File diff suppressed because one or more lines are too long
|
|
@ -82,12 +82,15 @@ WebGUI::SQL->write("alter table wobject add printableStyleTemplateId varchar(22)
|
|||
WebGUI::SQL->write("alter table wobject add cacheTimeout int not null default 60");
|
||||
WebGUI::SQL->write("alter table wobject add cacheTimeoutVisitor int not null default 3600");
|
||||
WebGUI::SQL->write("alter table wobject drop primary key");
|
||||
# next 2 lines are for sitemap to nav migration
|
||||
WebGUI::SQL->write("alter table Navigation rename tempoldnav");
|
||||
WebGUI::SQL->write("create table Navigation (assetId varchar(22) not null primary key, assetsToInclude text, startType varchar(35), startPoint varchar(255), endPoint varchar(35), showSystemPages int not null default 0, showHiddenPages int not null default 0, showUnprivilegedPages int not null default 0)");
|
||||
my $sth = WebGUI::SQL->read("select distinct(namespace) from wobject");
|
||||
while (my ($namespace) = $sth->array) {
|
||||
WebGUI::SQL->write("alter table ".$namespace." add column assetId varchar(22) not null");
|
||||
}
|
||||
$sth->finish;
|
||||
walkTree('0','theroot','000001','1');
|
||||
walkTree('0','PBasset000000000000001','000001','1');
|
||||
print "\t\tMaking second round of table structure changes\n" unless ($quiet);
|
||||
WebGUI::SQL->write("drop table SiteMap");
|
||||
WebGUI::SQL->write("delete from template where namespace in ('SiteMap')");
|
||||
|
|
@ -123,87 +126,152 @@ WebGUI::SQL->write("alter table wobject drop column bufferPrevId");
|
|||
WebGUI::SQL->write("alter table wobject drop column forumId");
|
||||
WebGUI::SQL->write("alter table wobject drop column startDate");
|
||||
WebGUI::SQL->write("alter table wobject drop column endDate");
|
||||
WebGUI::SQL->write("alter table wobject drop column addedBy");
|
||||
WebGUI::SQL->write("alter table wobject drop column dateAdded");
|
||||
WebGUI::SQL->write("alter table wobject drop column editedBy");
|
||||
WebGUI::SQL->write("alter table wobject drop column lastEdited");
|
||||
WebGUI::SQL->write("alter table wobject drop column allowDiscussion");
|
||||
WebGUI::SQL->write("drop table page");
|
||||
WebGUI::SQL->write("alter table Article drop column image");
|
||||
WebGUI::SQL->write("alter table Article drop column attachment");
|
||||
|
||||
|
||||
my %migration;
|
||||
|
||||
print "\tUpdating navigation to work with asset tree\n" unless ($quiet);
|
||||
WebGUI::SQL->write("alter table Navigation add column assetsToInclude text");
|
||||
WebGUI::SQL->write("alter table Navigation add column startType varchar(35)");
|
||||
WebGUI::SQL->write("alter table Navigation add column startPoint varchar(35)");
|
||||
WebGUI::SQL->write("alter table Navigation add column baseType varchar(35)");
|
||||
WebGUI::SQL->write("alter table Navigation add column basePage varchar(255)");
|
||||
WebGUI::SQL->write("alter table Navigation add column endType varchar(35)");
|
||||
WebGUI::SQL->write("alter table Navigation add column endPoint varchar(35)");
|
||||
my $sth = WebGUI::SQL->read("select * from Navigation");
|
||||
print "\tConverting navigation system to asset tree\n" unless ($quiet);
|
||||
my ($navRootLineage) = WebGUI::SQL->quickArray("select assetId,title,lineage from asset where length(lineage)=12 order by lineage desc limit 1");
|
||||
$navRootLineage = sprintf("%012d",("000001000005"+1));
|
||||
my $navRootId = WebGUI::SQL->setRow("asset","assetId",{
|
||||
assetId=>"new",
|
||||
isHidden=>1,
|
||||
title=>"Navigation Configurations",
|
||||
menuTitle=>"Navigation Configurations",
|
||||
url=>fixUrl('doesntexistyet',"Navigation Configurations"),
|
||||
ownerUserId=>"3",
|
||||
groupIdView=>"4",
|
||||
groupIdEdit=>"4",
|
||||
parentId=>"PBasset000000000000001",
|
||||
lineage=>$navRootLineage,
|
||||
lastUpdated=>time(),
|
||||
className=>"WebGUI::Admin::Wobject::Navigation",
|
||||
state=>"published"
|
||||
});
|
||||
WebGUI::SQL->setRow("wobject","assetId",{
|
||||
assetId=>$navRootId,
|
||||
templateId=>"1",
|
||||
styleTemplateId=>"1",
|
||||
printableStyleTemplateId=>"3"
|
||||
},undef,$navRootId);
|
||||
WebGUI::SQL->setRow("Navigation","assetId",{
|
||||
assetId=>$navRootId,
|
||||
startType=>"relativeToCurrentUrl",
|
||||
startPoint=>"0",
|
||||
endPoint=>"55",
|
||||
assetsToInclude=>"descendants"
|
||||
},undef,$navRootId);
|
||||
my $sth = WebGUI::SQL->read("select * from tempoldnav");
|
||||
my $navRankCounter = 1;
|
||||
while (my $data = $sth->hashRef) {
|
||||
my %newNav;
|
||||
$newNav{navigationId} = $data->{navigationId};
|
||||
$newNav{identifier} = $data->{identifier};
|
||||
print "\t\tConverting ".$data->{identifier}."\n" unless ($quiet);
|
||||
my (%newNav,%newAsset,%newWobject);
|
||||
$newNav{assetId} = $newWobject{assetId} = $newAsset{assetId} = getNewId("nav",$data->{navigationId});
|
||||
$newAsset{url} = fixUrl($newAsset{assetId},$data->{identifier});
|
||||
$newAsset{isHidden} = 1;
|
||||
$newAsset{title} = $newAsset{menuTitle} = $data->{identifier};
|
||||
$newAsset{ownerUserId} = "3";
|
||||
$newAsset{groupIdView} = $newAsset{groupIdEdit} = "4";
|
||||
$newAsset{className} = 'WebGUI::Asset::Wobject::Navigation';
|
||||
$newAsset{state} = 'published';
|
||||
$newAsset{lastUpdated} = time();
|
||||
$newAsset{parentId} = $navRootId;
|
||||
$newAsset{lineage} = $navRootLineage.sprintf("%06d",$navRankCounter);
|
||||
$newWobject{templateId} = $data->{templateId};
|
||||
$newWobject{styleTemplateId}="1";
|
||||
$newWobject{printableStyleTemplateId}="3";
|
||||
$newNav{showSystemPages} = $data->{showSystemPages};
|
||||
$newNav{showHiddenPages} = $data->{showHiddenPages};
|
||||
$newNav{showUnprivilegedPages} = $data->{showUnprivilegedPages};
|
||||
$newNav{startType} = "relativeToRoot";
|
||||
$newNav{startPoint} = $data->{stopAtLevel}+1;
|
||||
if ($data->{startAt} eq "root") {
|
||||
$newNav{baseType} = "relativeToRoot";
|
||||
$newNav{basePage} = "0";
|
||||
$newNav{startType} = "relativeToRoot";
|
||||
$newNav{startPoint} = "0";
|
||||
} elsif ($data->{startAt} eq "WebGUIroot") {
|
||||
$newNav{baseType} = "relativeToRoot";
|
||||
$newNav{basePage} = "1";
|
||||
$newNav{startType} = "relativeToRoot";
|
||||
$newNav{startPoint} = "1";
|
||||
} elsif ($data->{startAt} eq "top") {
|
||||
$newNav{baseType} = "relativeToRoot";
|
||||
$newNav{basePage} = "2";
|
||||
$newNav{startType} = "relativeToRoot";
|
||||
$newNav{startPoint} = "2";
|
||||
} elsif ($data->{startAt} eq "grandmother") {
|
||||
$newNav{baseType} = "relativeToCurrentPage";
|
||||
$newNav{basePage} = "-2";
|
||||
$newNav{startType} = "relativeToCurrentUrl";
|
||||
$newNav{startPoint} = "-2";
|
||||
} elsif ($data->{startAt} eq "mother") {
|
||||
$newNav{baseType} = "relativeToCurrentPage";
|
||||
$newNav{basePage} = "-1";
|
||||
$newNav{startType} = "relativeToCurrentUrl";
|
||||
$newNav{startPoint} = "-1";
|
||||
} elsif ($data->{startAt} eq "current") {
|
||||
$newNav{baseType} = "relativeToCurrentPage";
|
||||
$newNav{basePage} = "0";
|
||||
$newNav{startType} = "relativeToCurrentUrl";
|
||||
$newNav{startPoint} = "0";
|
||||
} elsif ($data->{startAt} eq "daughter") {
|
||||
$newNav{baseType} = "relativeToCurrentPage";
|
||||
$newNav{basePage} = "1";
|
||||
$newNav{startType} = "relativeToCurrentUrl";
|
||||
$newNav{startPoint} = "1";
|
||||
} else {
|
||||
$newNav{baseType} = "specificUrl";
|
||||
$newNav{basePage} = $data->{startAt};
|
||||
$newNav{startType} = "specificUrl";
|
||||
$newNav{startPoint} = $data->{startAt};
|
||||
}
|
||||
$newNav{endType} = "relativeToBasePage";
|
||||
$newNav{endPoint} = ($data->{depth} == 99)?55:$data->{stopAtLevel});
|
||||
$newNav{endPoint} = (($data->{depth} == 99)?55:$data->{depth});
|
||||
if ($data->{method} eq "daughters") {
|
||||
$newNav{endPoint} = "1";
|
||||
$newNav{assetsToInclude} = "descendants";
|
||||
} elsif ($data->{method} eq "sisters") {
|
||||
$newNav{assetsToInclude} = "siblings";
|
||||
} elsif ($data->{method} eq "self_and_sisters") {
|
||||
$newNav{assetsToInclude} = "self,siblings";
|
||||
$newNav{assetsToInclude} = "self\nsiblings";
|
||||
} elsif ($data->{method} eq "descendants") {
|
||||
$newNav{assetsToInclude} = "descendants";
|
||||
} elsif ($data->{method} eq "self_and_descendants") {
|
||||
$newNav{assetsToInclude} = "self,descendants";
|
||||
$newNav{assetsToInclude} = "self\ndescendants";
|
||||
} elsif ($data->{method} eq "leaves_under") {
|
||||
$newNav{endPoint} = "1";
|
||||
$newNav{assetsToInclude} = "descendants";
|
||||
} elsif ($data->{method} eq "generation") {
|
||||
$newNav{assetsToInclude} = "self,sisters";
|
||||
$newNav{assetsToInclude} = "self\nsisters";
|
||||
} elsif ($data->{method} eq "ancestors") {
|
||||
$newNav{assetsToInclude} = "ancestors";
|
||||
$newNav{endPoint} += $newNav{startPoint} unless ($newNav{startType} eq "specificUrl");
|
||||
$newNav{startType} = "relativeToRoot";
|
||||
$newNav{startPoint} = $data->{stopAtLevel}+1;
|
||||
$newNav{assetsToInclude} = "descendants";
|
||||
} elsif ($data->{method} eq "self_and_ancestors") {
|
||||
$newNav{assetsToInclude} = "self,ancestors";
|
||||
$newNav{endPoint} += $newNav{startPoint} unless ($newNav{startType} eq "specificUrl");
|
||||
$newNav{startType} = "relativeToRoot";
|
||||
$newNav{startPoint} = $data->{stopAtLevel}+1;
|
||||
$newNav{assetsToInclude} = "self\ndescendants";
|
||||
} elsif ($data->{method} eq "pedigree") {
|
||||
$newNav{endPoint} += $newNav{startPoint} unless ($newNav{startType} eq "specificUrl");
|
||||
$newNav{startType} = "relativeToRoot";
|
||||
$newNav{startPoint} = $data->{stopAtLevel}+1;
|
||||
$newNav{assetsToInclude} = "pedigree";
|
||||
}
|
||||
WebGUI::SQL->setRow("Navigation","navigationId",\%newNav);
|
||||
WebGUI::SQL->setRow("asset","assetId",\%newAsset,undef,$newNav{assetId});
|
||||
WebGUI::SQL->setRow("wobject","assetId",\%newWobject,undef,$newNav{assetId});
|
||||
WebGUI::SQL->setRow("Navigation","assetId",\%newNav,undef,$newNav{assetId});
|
||||
$navRankCounter++;
|
||||
}
|
||||
$sth->finish;
|
||||
WebGUI::SQL->write("alter table Navigation drop column depth");
|
||||
WebGUI::SQL->write("alter table Navigation drop column startAt");
|
||||
WebGUI::SQL->write("alter table Navigation drop column stopAtLevel");
|
||||
WebGUI::SQL->write("alter table Navigation drop column method");
|
||||
WebGUI::SQL->write("alter table Navigation drop column reverse");
|
||||
WebGUI::SQL->write("update Navigation set startPoint='root' where startPoint='nameless_root'");
|
||||
WebGUI::SQL->write("drop table tempoldnav");
|
||||
|
||||
|
||||
print "\tDeleting files which are no longer used.\n" unless ($quiet);
|
||||
#unlink("../../lib/WebGUI/Page.pm");
|
||||
#unlink("../../lib/WebGUI/Operation/Page.pm");
|
||||
#unlink("../../lib/WebGUI/Navigation.pm");
|
||||
#unlink("../../lib/WebGUI/Operation/Navigation.pm");
|
||||
#unlink("../../lib/WebGUI/Attachment.pm");
|
||||
#unlink("../../lib/WebGUI/Node.pm");
|
||||
#unlink("../../lib/WebGUI/Wobject/Article.pm");
|
||||
#unlink("../../lib/WebGUI/Wobject/SiteMap.pm");
|
||||
#unlink("../../lib/WebGUI/Wobject/DataForm.pm");
|
||||
#unlink("../../lib/WebGUI/Wobject/USS.pm");
|
||||
#unlink("../../lib/WebGUI/Wobject/FileManager.pm");
|
||||
|
||||
|
||||
|
||||
WebGUI::Session::close();
|
||||
|
|
@ -316,18 +384,17 @@ sub walkTree {
|
|||
rmtree($session{config}{uploadsPath}.'/'.$wobject->{wobjectId});
|
||||
} elsif ($wobject->{namespace} eq "SiteMap") {
|
||||
print "\t\t\tConverting SiteMap ".$wobject->{wobjectId}." into Navigation\n" unless ($quiet);
|
||||
my $navident = 'SiteMap_'.$namespace->{wobjectId};
|
||||
my ($starturl) = WebGUI::SQL->quickArray("select urlizedTitle from page
|
||||
where pageId=".quote($namespace->{startAtThisLevel}));
|
||||
WebGUI::SQL->write("insert into Navigation (navigationId, identifier, depth, startAt,
|
||||
templateId) values (".quote(WebGUI::Id::generate()).", ".quote($navident).",
|
||||
".quote($namespace->{depth}).", ".quote($starturl).", '1')");
|
||||
my $navmacro = $wobject->{description}.'<p>^Navigation('.$navident.');</p>';
|
||||
WebGUI::SQL->write("update asset set className='WebGUI::Asset::Wobject::Article' where assetId=".quote($wobjectId));
|
||||
WebGUI::SQL->write("update wobject set namespace='Article', description=".quote($navmacro)."
|
||||
where assetId=".quote($wobjectId));
|
||||
WebGUI::SQL->write("insert into Article (assetId,wobjectId) values (".quote($wobjectId).",
|
||||
".quote($wobject->{wobjectId}).")");
|
||||
WebGUI::SQL->setRow("Navigation","assetId",{
|
||||
assetId=>$wobjectId,
|
||||
endPoint=>$namespace->{depth},
|
||||
startPoint=>$starturl,
|
||||
startType=>"specificUrl",
|
||||
assetsToInclude=>"descendants"
|
||||
},undef,$wobjectId);
|
||||
WebGUI::SQL->write("update asset set className='WebGUI::Asset::Wobject::Navigation' where assetId=".quote($wobjectId));
|
||||
WebGUI::SQL->write("update wobject set namespace='Navigation', templateId='1' where assetId=".quote($wobjectId));
|
||||
} elsif ($wobject->{namespace} eq "FileManager") {
|
||||
print "\t\t\tConverting File Manager ".$wobject->{wobjectId}." into File Folder Layout\n" unless ($quiet);
|
||||
WebGUI::SQL->write("update asset set className='WebGUI::Asset::Layout' where assetId=".quote($wobjectId));
|
||||
|
|
@ -469,3 +536,321 @@ sub isIn {
|
|||
}
|
||||
|
||||
|
||||
sub getNewId {
|
||||
my $type = shift;
|
||||
my $oldId = shift;
|
||||
my $namespace = shift;
|
||||
my $migration = {'tmpl' => {
|
||||
'Operation/MessageLog/View' => {
|
||||
'1' => 'PBtmpl0000000000000050'
|
||||
},
|
||||
'Forum/Search' => {
|
||||
'1' => 'PBtmpl0000000000000031'
|
||||
},
|
||||
'Auth/WebGUI/Account' => {
|
||||
'1' => 'PBtmpl0000000000000010'
|
||||
},
|
||||
'Forum/PostPreview' => {
|
||||
'1' => 'PBtmpl0000000000000030'
|
||||
},
|
||||
'MessageBoard' => {
|
||||
'1' => 'PBtmpl0000000000000047'
|
||||
},
|
||||
'FileManager' => {
|
||||
'1' => 'PBtmpl0000000000000025',
|
||||
'2' => 'PBtmpl0000000000000087'
|
||||
},
|
||||
'Operation/Profile/View' => {
|
||||
'1' => 'PBtmpl0000000000000052'
|
||||
},
|
||||
'Forum/PostForm' => {
|
||||
'1' => 'PBtmpl0000000000000029'
|
||||
},
|
||||
'Operation/RedeemSubscription' => {
|
||||
'1' => 'PBtmpl0000000000000053'
|
||||
},
|
||||
'Navigation' => {
|
||||
'8' => 'PBtmpl0000000000000136',
|
||||
'6' => 'PBtmpl0000000000000130',
|
||||
'1001' => 'PBtmpl0000000000000075',
|
||||
'4' => 'PBtmpl0000000000000117',
|
||||
'1' => 'PBtmpl0000000000000048',
|
||||
'3' => 'PBtmpl0000000000000108',
|
||||
'7' => 'PBtmpl0000000000000134',
|
||||
'1000' => 'PBtmpl0000000000000071',
|
||||
'2' => 'PBtmpl0000000000000093',
|
||||
'5' => 'PBtmpl0000000000000124'
|
||||
},
|
||||
'Macro/L_loginBox' => {
|
||||
'1' => 'PBtmpl0000000000000044',
|
||||
'2' => 'PBtmpl0000000000000092'
|
||||
},
|
||||
'Commerce/ConfirmCheckout' => {
|
||||
'1' => 'PBtmpl0000000000000016'
|
||||
},
|
||||
'prompt' => {
|
||||
'1' => 'PBtmpl0000000000000057'
|
||||
},
|
||||
'Auth/SMB/Login' => {
|
||||
'1' => 'PBtmpl0000000000000009'
|
||||
},
|
||||
'ImageAsset' => {
|
||||
'2' => 'PBtmpl0000000000000088'
|
||||
},
|
||||
'AttachmentBox' => {
|
||||
'1' => 'PBtmpl0000000000000003'
|
||||
},
|
||||
'Forum' => {
|
||||
'1' => 'PBtmpl0000000000000026'
|
||||
},
|
||||
'Poll' => {
|
||||
'1' => 'PBtmpl0000000000000055'
|
||||
},
|
||||
'FileAsset' => {
|
||||
'1' => 'PBtmpl0000000000000024'
|
||||
},
|
||||
'HttpProxy' => {
|
||||
'1' => 'PBtmpl0000000000000033'
|
||||
},
|
||||
'Auth/SMB/Create' => {
|
||||
'1' => 'PBtmpl0000000000000008'
|
||||
},
|
||||
'Commerce/ViewPurchaseHistory' => {
|
||||
'1' => 'PBtmpl0000000000000019'
|
||||
},
|
||||
'Article' => {
|
||||
'6' => 'PBtmpl0000000000000129',
|
||||
'4' => 'PBtmpl0000000000000115',
|
||||
'1' => 'PBtmpl0000000000000002',
|
||||
'3' => 'PBtmpl0000000000000103',
|
||||
'2' => 'PBtmpl0000000000000084',
|
||||
'5' => 'PBtmpl0000000000000123'
|
||||
},
|
||||
'style' => {
|
||||
'6' => 'PBtmpl0000000000000132',
|
||||
'adminConsole' => 'PBtmpl0000000000000137',
|
||||
'3' => 'PBtmpl0000000000000111',
|
||||
'1001' => 'PBtmpl0000000000000076',
|
||||
'1' => 'PBtmpl0000000000000060',
|
||||
'1000' => 'PBtmpl0000000000000072',
|
||||
'10' => 'PBtmpl0000000000000070'
|
||||
},
|
||||
'Macro/SubscriptionItem' => {
|
||||
'1' => 'PBtmpl0000000000000046'
|
||||
},
|
||||
'WSClient' => {
|
||||
'1' => 'PBtmpl0000000000000069',
|
||||
'2' => 'PBtmpl0000000000000100'
|
||||
},
|
||||
'Operation/MessageLog/Message' => {
|
||||
'1' => 'PBtmpl0000000000000049'
|
||||
},
|
||||
'Auth/SMB/Account' => {
|
||||
'1' => 'PBtmpl0000000000000007'
|
||||
},
|
||||
'Survey' => {
|
||||
'1' => 'PBtmpl0000000000000061'
|
||||
},
|
||||
'EventsCalendar' => {
|
||||
'1' => 'PBtmpl0000000000000022',
|
||||
'3' => 'PBtmpl0000000000000105',
|
||||
'2' => 'PBtmpl0000000000000086'
|
||||
},
|
||||
'Macro/AdminToggle' => {
|
||||
'1' => 'PBtmpl0000000000000036'
|
||||
},
|
||||
'Auth/LDAP/Create' => {
|
||||
'1' => 'PBtmpl0000000000000005'
|
||||
},
|
||||
'Auth/WebGUI/Create' => {
|
||||
'1' => 'PBtmpl0000000000000011'
|
||||
},
|
||||
'page' => {
|
||||
'6' => 'PBtmpl0000000000000131',
|
||||
'3' => 'PBtmpl0000000000000109',
|
||||
'7' => 'PBtmpl0000000000000135',
|
||||
'2' => 'PBtmpl0000000000000094',
|
||||
'15' => 'PBtmpl0000000000000078',
|
||||
'1' => 'PBtmpl0000000000000054',
|
||||
'4' => 'PBtmpl0000000000000118',
|
||||
'5' => 'PBtmpl0000000000000125'
|
||||
},
|
||||
'Macro/H_homeLink' => {
|
||||
'1' => 'PBtmpl0000000000000042'
|
||||
},
|
||||
'USS' => {
|
||||
'6' => 'PBtmpl0000000000000133',
|
||||
'21' => 'PBtmpl0000000000000102',
|
||||
'3' => 'PBtmpl0000000000000112',
|
||||
'2' => 'PBtmpl0000000000000097',
|
||||
'17' => 'PBtmpl0000000000000081',
|
||||
'20' => 'PBtmpl0000000000000101',
|
||||
'15' => 'PBtmpl0000000000000079',
|
||||
'14' => 'PBtmpl0000000000000077',
|
||||
'4' => 'PBtmpl0000000000000121',
|
||||
'1' => 'PBtmpl0000000000000066',
|
||||
'18' => 'PBtmpl0000000000000082',
|
||||
'1000' => 'PBtmpl0000000000000074',
|
||||
'16' => 'PBtmpl0000000000000080',
|
||||
'19' => 'PBtmpl0000000000000083',
|
||||
'5' => 'PBtmpl0000000000000128'
|
||||
},
|
||||
'AdminConsole' => {
|
||||
'1' => 'PBtmpl0000000000000001'
|
||||
},
|
||||
'SQLReport' => {
|
||||
'1' => 'PBtmpl0000000000000059'
|
||||
},
|
||||
'Macro/AdminBar' => {
|
||||
'1' => 'PBtmpl0000000000000035',
|
||||
'2' => 'PBtmpl0000000000000090'
|
||||
},
|
||||
'Survey/Gradebook' => {
|
||||
'1' => 'PBtmpl0000000000000062'
|
||||
},
|
||||
'DataForm/List' => {
|
||||
'1' => 'PBtmpl0000000000000021'
|
||||
},
|
||||
'Macro/GroupDelete' => {
|
||||
'1' => 'PBtmpl0000000000000041'
|
||||
},
|
||||
'Product' => {
|
||||
'4' => 'PBtmpl0000000000000119',
|
||||
'1' => 'PBtmpl0000000000000056',
|
||||
'3' => 'PBtmpl0000000000000110',
|
||||
'2' => 'PBtmpl0000000000000095'
|
||||
},
|
||||
'Commerce/TransactionError' => {
|
||||
'1' => 'PBtmpl0000000000000018'
|
||||
},
|
||||
'IndexedSearch' => {
|
||||
'1' => 'PBtmpl0000000000000034',
|
||||
'3' => 'PBtmpl0000000000000106',
|
||||
'2' => 'PBtmpl0000000000000089'
|
||||
},
|
||||
'Auth/WebGUI/Expired' => {
|
||||
'1' => 'PBtmpl0000000000000012'
|
||||
},
|
||||
'Commerce/SelectPaymentGateway' => {
|
||||
'1' => 'PBtmpl0000000000000017'
|
||||
},
|
||||
'Macro/File' => {
|
||||
'1' => 'PBtmpl0000000000000039',
|
||||
'3' => 'PBtmpl0000000000000107',
|
||||
'2' => 'PBtmpl0000000000000091'
|
||||
},
|
||||
'Survey/Overview' => {
|
||||
'1' => 'PBtmpl0000000000000063'
|
||||
},
|
||||
'Macro/a_account' => {
|
||||
'1' => 'PBtmpl0000000000000037'
|
||||
},
|
||||
'Macro/LoginToggle' => {
|
||||
'1' => 'PBtmpl0000000000000043'
|
||||
},
|
||||
'Auth/LDAP/Account' => {
|
||||
'1' => 'PBtmpl0000000000000004'
|
||||
},
|
||||
'Survey/Response' => {
|
||||
'1' => 'PBtmpl0000000000000064'
|
||||
},
|
||||
'Commerce/CheckoutCanceled' => {
|
||||
'1' => 'PBtmpl0000000000000015'
|
||||
},
|
||||
'USS/Submission' => {
|
||||
'1' => 'PBtmpl0000000000000067',
|
||||
'3' => 'PBtmpl0000000000000113',
|
||||
'2' => 'PBtmpl0000000000000098'
|
||||
},
|
||||
'Auth/WebGUI/Recovery' => {
|
||||
'1' => 'PBtmpl0000000000000014'
|
||||
},
|
||||
'Macro/r_printable' => {
|
||||
'1' => 'PBtmpl0000000000000045'
|
||||
},
|
||||
'Operation/Profile/Edit' => {
|
||||
'1' => 'PBtmpl0000000000000051'
|
||||
},
|
||||
'SyndicatedContent' => {
|
||||
'1' => 'PBtmpl0000000000000065',
|
||||
'1000' => 'PBtmpl0000000000000073'
|
||||
},
|
||||
'USS/SubmissionForm' => {
|
||||
'4' => 'PBtmpl0000000000000122',
|
||||
'1' => 'PBtmpl0000000000000068',
|
||||
'3' => 'PBtmpl0000000000000114',
|
||||
'2' => 'PBtmpl0000000000000099'
|
||||
},
|
||||
'EventsCalendar/Event' => {
|
||||
'1' => 'PBtmpl0000000000000023'
|
||||
},
|
||||
'Macro/GroupAdd' => {
|
||||
'1' => 'PBtmpl0000000000000040'
|
||||
},
|
||||
'Forum/Notification' => {
|
||||
'1' => 'PBtmpl0000000000000027'
|
||||
},
|
||||
'Auth/LDAP/Login' => {
|
||||
'1' => 'PBtmpl0000000000000006'
|
||||
},
|
||||
'DataForm' => {
|
||||
'4' => 'PBtmpl0000000000000116',
|
||||
'1' => 'PBtmpl0000000000000020',
|
||||
'3' => 'PBtmpl0000000000000104',
|
||||
'2' => 'PBtmpl0000000000000085'
|
||||
},
|
||||
'Auth/WebGUI/Login' => {
|
||||
'1' => 'PBtmpl0000000000000013'
|
||||
},
|
||||
'richEditor' => {
|
||||
'tinymce' => 'PBtmpl0000000000000138',
|
||||
'5' => 'PBtmpl0000000000000126'
|
||||
},
|
||||
'Forum/Thread' => {
|
||||
'1' => 'PBtmpl0000000000000032'
|
||||
},
|
||||
'Forum/Post' => {
|
||||
'1' => 'PBtmpl0000000000000028'
|
||||
},
|
||||
'Macro/EditableToggle' => {
|
||||
'1' => 'PBtmpl0000000000000038'
|
||||
},
|
||||
'richEditor/pagetree' => {
|
||||
'1' => 'PBtmpl0000000000000058'
|
||||
}
|
||||
},
|
||||
'nav' => {
|
||||
'1002' => 'PBnav00000000000000005',
|
||||
'11' => 'PBnav00000000000000006',
|
||||
'7' => 'PBnav00000000000000019',
|
||||
'2' => 'PBnav00000000000000014',
|
||||
'17' => 'PBnav00000000000000012',
|
||||
'1' => 'PBnav00000000000000001',
|
||||
'18' => 'PBnav00000000000000013',
|
||||
'16' => 'PBnav00000000000000011',
|
||||
'13' => 'PBnav00000000000000008',
|
||||
'iBkcoHUb-z4vzYPyX0oS5A' => 'PBnav00000000000000023',
|
||||
'6' => 'PBnav00000000000000018',
|
||||
'b3XBaWXeMXS39HPDfV2y5Q' => 'PBnav00000000000000022',
|
||||
'3' => 'PBnav00000000000000015',
|
||||
'9' => 'PBnav00000000000000021',
|
||||
'12' => 'PBnav00000000000000007',
|
||||
'14' => 'PBnav00000000000000009',
|
||||
'15' => 'PBnav00000000000000010',
|
||||
'8' => 'PBnav00000000000000020',
|
||||
'1001' => 'PBnav00000000000000004',
|
||||
'4' => 'PBnav00000000000000016',
|
||||
'1000' => 'PBnav00000000000000003',
|
||||
'10' => 'PBnav00000000000000002',
|
||||
'5' => 'PBnav00000000000000017'
|
||||
}
|
||||
};
|
||||
my $newId;
|
||||
if ($type eq "nav") {
|
||||
$newId = $migration->{nav}{$oldId};
|
||||
} elsif ($type eq "tmpl") {
|
||||
$newId = $migration->{tmpl}{$namespace}{$oldId};
|
||||
}
|
||||
$newId = WebGUI::Id::generate() unless ($newId);
|
||||
return $newId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ create table asset (
|
|||
index (parentId)
|
||||
);
|
||||
|
||||
insert into asset (assetId, parentId, lineage, state, className, title, menuTitle, url, isSystem, ownerUserId, groupIdView, groupIdEdit) values ('theroot', 'infinity', '000001','published','WebGUI::Asset','Root','Root','root',1,'3','3','3');
|
||||
insert into asset (assetId, parentId, lineage, state, className, title, menuTitle, url, isSystem, ownerUserId, groupIdView, groupIdEdit) values ('PBasset000000000000001', 'infinity', '000001','published','WebGUI::Asset','Root','Root','root',1,'3','3','3');
|
||||
|
||||
create table assetHistory (
|
||||
assetId varchar(22) not null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue