insert into webguiVersion values ('6.3.0','upgrade',unix_timestamp()); UPDATE template set template = '\n\n\n
\r\n\r\n
\r\n \">\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
' where templateId='8' and namespace='Navigation'; delete from template where templateId='tinymce' and namespace='richEditor'; INSERT INTO template VALUES ('tinymce','TinyMCE','^JavaScript(\"/tinymce/jscripts/tiny_mce/tiny_mce.js\");\r\n\r\n\r\n','richEditor',1,1); delete from template where namespace='style' and templateId='10'; update template set template='^JavaScript(\"/tinymce/jscripts/tiny_mce/tiny_mce.js\");\r\n\r\n\r\n' where templateId='tinymce' and namespace='richEditor'; delete from userProfileField where fieldName='richEditor'; INSERT INTO userProfileField VALUES ('richEditor','WebGUI::International::get(496)',1,0,'selectList','{\'PBtmpl0000000000000126\'=>WebGUI::International::get(880),\r\nnone=>WebGUI::International::get(881),\r\n\'PBtmpl0000000000000138\'=>WebGUI::International::get(\"tinymce\")\n}','[\'PBtmpl0000000000000138\']',11,'4',0,1); update userProfileData set fieldData='PBtmpl0000000000000138' where fieldName='richEditor'; INSERT INTO template VALUES ('adminConsole','Admin Console','\r\n\r\n\r\n WebGUI <tmpl_var session.webgui.version>-<tmpl_var session.webgui.status> Admin Console\r\n \r\n\r\n\r\n\r\n\r\n\r\n','style',1,0); delete from settings where name='adminStyleId'; delete from settings where name='useAdminStyle'; ALTER TABLE SQLReport CHANGE preprocessMacros preprocessMacros1 INT DEFAULT 0; ALTER TABLE SQLReport CHANGE dbQuery dbQuery1 TEXT; ALTER TABLE SQLReport CHANGE databaseLinkId databaseLinkId1 varchar(22) DEFAULT NULL; ALTER TABLE SQLReport ADD placeholderParams1 TEXT; ALTER TABLE SQLReport ADD preprocessMacros2 INT DEFAULT 0; ALTER TABLE SQLReport ADD dbQuery2 TEXT; ALTER TABLE SQLReport ADD placeholderParams2 TEXT; ALTER TABLE SQLReport ADD databaseLinkId2 VARCHAR(22); ALTER TABLE SQLReport ADD preprocessMacros3 INT DEFAULT 0; ALTER TABLE SQLReport ADD dbQuery3 TEXT; ALTER TABLE SQLReport ADD placeholderParams3 TEXT; ALTER TABLE SQLReport ADD databaseLinkId3 VARCHAR(22); ALTER TABLE SQLReport ADD preprocessMacros4 INT DEFAULT 0; ALTER TABLE SQLReport ADD dbQuery4 TEXT; ALTER TABLE SQLReport ADD placeholderParams4 TEXT; ALTER TABLE SQLReport ADD databaseLinkId4 VARCHAR(22); ALTER TABLE SQLReport ADD preprocessMacros5 INT DEFAULT 0; ALTER TABLE SQLReport ADD dbQuery5 TEXT; ALTER TABLE SQLReport ADD placeholderParams5 TEXT; ALTER TABLE SQLReport ADD databaseLinkId5 VARCHAR(22); UPDATE template set template = '\r\n

\r\n
\r\n\r\n\r\n

\r\n\r\n\r\n\r\n

    \r\n \r\n
  • \r\n
    \r\n
\r\n
\r\n\r\n\r\n\r\n \r\n \r\n \r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n
\">\r\n \r\n \r\n \r\n \r\n \r\n
\r\n  \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\">\r\n \r\n \r\n \r\n \r\n \r\n
\r\n  \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\">\r\n \r\n \r\n \r\n \r\n \r\n
\r\n  \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\">\r\n \r\n \r\n \r\n \r\n \r\n
\r\n  \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n \r\n
\r\n
' where templateId="1" and namespace="SQLReport"; create table asset ( assetId varchar(22) not null primary key, parentId varchar(22) not null, lineage varchar(255) not null, state varchar(35) not null, className varchar(255) not null, title varchar(255) not null default 'untitled', menuTitle varchar(255) not null default 'untitled', url varchar(255) not null, startDate bigint not null default 997995720, endDate bigint not null default 9223372036854775807, ownerUserId varchar(22) not null, groupIdView varchar(22) not null, groupIdEdit varchar(22) not null, synopsis text, newWindow int not null default 0, isHidden int not null default 0, isSystem int not null default 0, encryptPage int not null default 0, assetSize int not null default 0, lastUpdated bigint not null default 0, lastUpdatedBy varchar(22), isPackage int not null default 0, extraHeadTags text, unique index (lineage asc), unique index (url), index (parentId) ); insert into asset (assetId, parentId, lineage, state, className, title, menuTitle, url, isSystem, ownerUserId, groupIdView, groupIdEdit, isHidden) values ('PBasset000000000000001', 'infinity', '000001','published','WebGUI::Asset','Root','Root','root',1,'3','3','3',1); insert into asset (assetId, parentId, lineage, state, className, title, menuTitle, url, isSystem, ownerUserId, groupIdView, groupIdEdit, isHidden) values ('PBasset000000000000002', 'PBasset000000000000001', '000001000001','published','WebGUI::Asset::Wobject::Folder','Import Node','Import','root/import',1,'3','3','3',1); create table assetHistory ( assetId varchar(22) not null, userId varchar(22) not null, dateStamp bigint not null default 0, actionTaken varchar(255) not null ); create table redirect ( assetId varchar(22) not null primary key, redirectUrl text ); create table snippet ( assetId varchar(22) not null primary key, snippet mediumtext ); create table Layout ( assetId varchar(22) not null primary key, templateId varchar(22) not null, contentPositions text ); create table Folder ( assetId varchar(22) not null primary key, templateId varchar(22) not null ); create table FileAsset ( assetId varchar(22) not null primary key, storageId varchar(22) not null, filename varchar(255) not null, olderVersions text ); INSERT INTO settings VALUES ('commerceCheckoutCanceledTemplateId','1'); INSERT INTO settings VALUES ('commerceConfirmCheckoutTemplateId','1'); INSERT INTO settings VALUES ('commercePaymentPlugin','PayFlowPro'); INSERT INTO settings VALUES ('commerceSelectPaymentGatewayTemplateId','1'); INSERT INTO settings VALUES ('commerceTransactionErrorTemplateId','1'); INSERT INTO template VALUES ('1','Subscription code redemption','\r\nBatch: \r\n\r\n\r\n
\r\n','Operation/RedeemSubscription',1,1); INSERT INTO template VALUES ('1','Subscriptionitem default template','

\r\n
\r\n
\r\n
\r\n$
\r\n\">Subscribe now
','Macro/SubscriptionItem',1,1); INSERT INTO template VALUES ('1','Default transaction error template','\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
Transaction descriptionPriceStatusError
()

\r\n
\r\n\r\n','Commerce/TransactionError',1,1); INSERT INTO template VALUES ('1','Default checkout confirmation template','
\r\n
\r\n
    \r\n\r\n
  • \r\n
    \r\n
\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n
Subscription \"\" : $ every

\r\n
\r\n
\r\n','Commerce/ConfirmCheckout',1,1); INSERT INTO template VALUES ('1','Default view purchase history template','\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
$ \">Cancel
x $
','Commerce/ViewPurchaseHistory',1,1); INSERT INTO template VALUES ('1','Default cancel checkout template','','Commerce/CheckoutCanceled',1,1); CREATE TABLE shoppingCart ( sessionId varchar(22) NOT NULL default '', itemId varchar(64) NOT NULL default '', itemType varchar(40) NOT NULL default '', quantity int(4) NOT NULL default '0', PRIMARY KEY (sessionId,itemId,itemType) ) TYPE=MyISAM; CREATE TABLE subscription ( subscriptionId varchar(22) NOT NULL default '', name varchar(128) default NULL, price float default '0', description mediumtext, subscriptionGroup varchar(22) NOT NULL default '', duration varchar(12) NOT NULL default 'Monthly', executeOnSubscription varchar(128) default NULL, karma int(4) default '0', deleted int(1) default '0', PRIMARY KEY (subscriptionId) ) TYPE=MyISAM; CREATE TABLE subscriptionCodeBatch ( batchId varchar(22) NOT NULL default '', name varchar(128) default NULL, description mediumtext NOT NULL, subscriptionId varchar(22) NOT NULL default '', PRIMARY KEY (batchId) ) TYPE=MyISAM; CREATE TABLE subscriptionCode ( batchId varchar(22) NOT NULL default '', code varchar(64) NOT NULL default '', status varchar(10) NOT NULL default 'Unused', dateCreated int(11) NOT NULL default '0', dateUsed int(11) NOT NULL default '0', expires int(11) NOT NULL default '0', usedBy varchar(22) NOT NULL default '0', PRIMARY KEY (code) ) TYPE=MyISAM; CREATE TABLE subscriptionCodeSubscriptions ( code varchar(64) NOT NULL default '', subscriptionId varchar(22) NOT NULL default '', UNIQUE KEY code (code,subscriptionId) ) TYPE=MyISAM; CREATE TABLE transaction ( transactionId varchar(22) NOT NULL default '', userId varchar(22) NOT NULL default '', amount float NOT NULL default '0', gatewayId varchar(128) default NULL, gateway varchar(64) NOT NULL default '', recurring tinyint(1) NOT NULL default '0', initDate int(11) NOT NULL default '0', completionDate int(11) default '0', status varchar(10) NOT NULL default 'Pending', lastPayedTerm int(6) NOT NULL default '0', PRIMARY KEY (transactionId) ) TYPE=MyISAM; CREATE TABLE transactionItem ( transactionId varchar(22) NOT NULL default '', itemName varchar(64) NOT NULL default '', amount float NOT NULL default '0', quantity int(4) NOT NULL default '0', itemId varchar(64) NOT NULL default '', itemType varchar(40) NOT NULL default '' ) TYPE=MyISAM; CREATE TABLE commerceSettings ( fieldName varchar(64) NOT NULL default '', fieldValue varchar(255) NOT NULL default '', namespace varchar(64) NOT NULL default '', type varchar(10) NOT NULL default '' ) TYPE=MyISAM; create table ITransact_recurringStatus ( gatewayId varchar(128) not null primary key, initDate int(11) not null, lastTransaction int(11) not null, status varchar(10) not null, errorMessage varchar(128), recipe varchar(15) not null ); INSERT INTO template VALUES ('1','Default payment gateway selection template','\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n\r\n \r\n
','Commerce/SelectPaymentGateway',1,1); create table ImageAsset ( assetId varchar(22) not null primary key, thumbnailSize int not null default 50, parameters text ); INSERT INTO template VALUES ('1','Admin Console','^StyleSheet(^Extras;/adminConsole/adminConsole.css);\r\n^JavaScript(^Extras;/adminConsole/adminConsole.js);\r\n\r\n
\r\n \r\n \" target=\"_blank\">\"?\"\r\n \r\n
\r\n
\r\n \" border=\"0\" title=\"\" alt=\"\" />\r\n
\r\n
\r\n\"*\"\r\n
\r\n
\r\n \" border=\"0\" title=\"\" alt=\"\" />\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n  \r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n  \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \" >
\r\n
\r\n
\r\n
\r\n
\r\n ^AdminToggle;
\r\n ^LoginToggle;
\r\n
\r\n
\r\n\r\n','AdminConsole',1,1); insert into settings (name,value) values ('AdminConsoleTemplate',"PBtmpl0000000000000001"); delete from template where namespace='Macro/AdminBar' and templateId in ('1','2'); INSERT INTO template VALUES ('1','Default Admin Bar','\r\n \r\n
\r\n\r\n \r\n \r\n\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n
\r\n','Macro/AdminBar',1,1); INSERT INTO template VALUES ('2','DHTML Admin Bar','^JavaScript(\"/coolmenus/coolmenus4.js\");\r\n\r\n\r\n\r\n','Macro/AdminBar',1,1); delete from template where namespace='page' and templateId in ('1','2','3','4','5','6','7'); INSERT INTO template VALUES ('5','Left Column','\">\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n
 
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n
 
\r\n\r\n \r\n
 
\r\n \r\n
\r\n ','page',1,1); INSERT INTO template VALUES ('4','Three Over One','\">\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n
 
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n\r\n
 
\r\n\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n \r\n
 
\r\n \r\n
\r\n ','page',1,1); INSERT INTO template VALUES ('3','One Over Three','\">\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n
 
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n
\r\n\r\n
 
\r\n\r\n\r\n \r\n
 
\r\n \r\n
\r\n ','page',1,1); INSERT INTO template VALUES ('2','News','\">\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n
 
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n
 
\r\n\r\n\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n \r\n
 
\r\n \r\n
\r\n ','page',1,1); INSERT INTO template VALUES ('7','Side By Side','\">\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n
 
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n
 
\r\n\r\n\r\n \r\n
 
\r\n \r\n
\r\n ','page',1,1); INSERT INTO template VALUES ('6','Right Column','\">\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n
 
\r\n\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n
\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n
 
\r\n\r\n\r\n \r\n
 
\r\n \r\n
\r\n ','page',1,1); INSERT INTO template VALUES ('1','Default Page','\">\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n \">\r\n \r\n \r\n \r\n\r\n\r\n \r\n
_div\" class=\"dragable\"> \r\n \r\n\r\n
\r\n\r\n \r\n
\r\n
\r\n\r\n \r\n
 
\r\n \r\n
\r\n ','page',1,1); INSERT INTO template VALUES ('1','File','\r\n

\r\n
\r\n\">\" alt=\"\" border=\"0\" />','FileAsset',1,1); INSERT INTO template VALUES ('2','Image','\r\n

\r\n
\r\n\" />','ImageAsset',1,1); INSERT INTO template VALUES ('15','File Folder','\">\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n
\">\" border=\"0\" alt=\"\"> \">
\">\" border=\"0\" alt=\"\"> \">^D(\"%z %Z\",);
', 'Folder',1,1); alter table HttpProxy add column cookieJarStorageId varchar(22); alter table Survey drop column reportcardTemplateId; alter table Survey add column gradebookTemplateId varchar(22) default 'PBtmpl0000000000000062'; -- Len Kranendonk 20050112 -- -- Converting the Indexed Search system to Assets. -- truncate table IndexedSearch_docInfo; alter table IndexedSearch_docInfo drop pageId; alter table IndexedSearch_docInfo drop languageId; alter table IndexedSearch_docInfo change wobjectId assetId varchar(22); alter table IndexedSearch_docInfo drop page_groupIdView; alter table IndexedSearch_docInfo change wobject_special_groupIdView special_groupIdView varchar(22); alter table IndexedSearch_docInfo change wobject_groupIdView groupIdView varchar(22); update USS set sortBy='lineage' where sortBy='sequenceNumber'; delete from settings where name='trackPageStatistics'; drop table pageStatistics; delete from settings where name='snippetPreviewLength'; delete from incrementer where incrementerId in ('collateralFolderId','themeId','themeComponentId'); create table Collaboration ( assetId varchar(22) not null primary key, postGroupId varchar(22) not null default '2', moderateGroupId varchar(22) not null default '4', moderatePosts int not null default 0, karmaPerPost int not null default 0, collaborationTemplateId varchar(22) not null, threadTemplateId varchar(22) not null, postFormTemplateId varchar(22) not null, searchTemplateId varchar(22) not null, notificationTemplateId varchar(22) not null, sortBy varchar(35) not null default 'dateUpdated', sortOrder varchar(4) not null default 'desc', usePreview int not null default 1, addEditStampToPosts int not null default 0, editTimeout int not null default 3600, attachmentsPerPost int not null default 0, allowRichEdit int not null default 1, filterCode varchar(30) not null default 'javascript', useContentFilter int not null default 1, threads int not null default 0, views int not null default 0, replies int not null default 0, rating int not null default 0, lastPostId varchar(22), lastPostDate bigint, archiveAfter int not null default 31536000, postsPerPage int not null default 10, threadsPerPage int not null default 30, subscriptionGroupId varchar(22), allowReplies int not null default 0 ); create table Thread ( assetId varchar(22) not null primary key, replies int not null default 0, lastPostId varchar(22) not null default 0, lastPostDate bigint, isLocked int not null default 0, isSticky int not null default 0, subscriptionGroupId varchar(22) ); create table Post ( assetId varchar(22) not null primary key, threadId varchar(22) not null, dateSubmitted bigint, dateUpdated bigint, username varchar(30), content mediumtext, status varchar(30) not null default 'approved', views int not null default 0, contentType varchar(35) not null default 'mixed', userDefined1 text, userDefined2 text, userDefined3 text, userDefined4 text, userDefined5 text, storageId varchar(22), rating int not null default 0 ); create table Post_rating ( assetId varchar(22) not null, userId varchar(22) not null, ipAddress varchar(15) not null, dateOfRating bigint, rating int not null default 0 ); create table Post_read ( postId varchar(22) not null, threadId varchar(22) not null, userId varchar(22) not null, readDate bigint ); delete from template where namespace='Forum/PostPreview'; insert into settings values ("richEditCss","^/;site.css"); delete from settings where name in ('sharedTrash','sharedClipboard'); alter table IndexedSearch add linkURL text; update template set template='\">\r\n\r\n

\r\n
\r\n \r\n

\r\n
\r\n\r\n\r\n

\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n

\r\n
\r\n \r\n \">\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \' name=\"query\">\r\n
\r\n\r\n \r\n \r\n \r\n \"\r\n \r\n \r\n \r\n checked=\"1\"\r\n \r\n \r\n checked=\"1\"\r\n \r\n \r\n checked=\"1\"\r\n \r\n >\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n

\r\n\r\n

Results - of about \r\n containing \"\". Search took seconds.

\r\n
    \">\r\n \r\n
  1. \r\n \">\r\n No Title\r\n
    \r\n \r\n
    \r\n
    \r\n Location: \r\n
    \r\n
    \r\n
    \r\n
  2. \r\n
    \r\n
\r\n
\r\n\r\n\r\n\r\n
\r\n · · \r\n
\r\n
\r\n' where namespace='IndexedSearch' and templateId='1'; delete from template where templateId='2' and namespace='IndexedSearch'; delete from template where templateId='3' and namespace='IndexedSearch';