diff --git a/docs/upgrades/packages-7.6.10/matrix-default-compare-template.wgpkg b/docs/upgrades/packages-7.6.10/matrix-default-compare-template.wgpkg deleted file mode 100644 index 3178d9745..000000000 Binary files a/docs/upgrades/packages-7.6.10/matrix-default-compare-template.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.10/root_import_matrix.wgpkg b/docs/upgrades/packages-7.6.10/root_import_matrix.wgpkg deleted file mode 100644 index 8b0da455f..000000000 Binary files a/docs/upgrades/packages-7.6.10/root_import_matrix.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.10/root_import_survey_default-answer-edit.wgpkg b/docs/upgrades/packages-7.6.10/root_import_survey_default-answer-edit.wgpkg deleted file mode 100644 index 3b0bdc01f..000000000 Binary files a/docs/upgrades/packages-7.6.10/root_import_survey_default-answer-edit.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.10/root_import_survey_default-question-edit.wgpkg b/docs/upgrades/packages-7.6.10/root_import_survey_default-question-edit.wgpkg deleted file mode 100644 index eaa55fd4c..000000000 Binary files a/docs/upgrades/packages-7.6.10/root_import_survey_default-question-edit.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.10/root_import_survey_default-section-edit.wgpkg b/docs/upgrades/packages-7.6.10/root_import_survey_default-section-edit.wgpkg deleted file mode 100644 index 300ef2ccd..000000000 Binary files a/docs/upgrades/packages-7.6.10/root_import_survey_default-section-edit.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.10/root_import_survey_default-survey-edit.wgpkg b/docs/upgrades/packages-7.6.10/root_import_survey_default-survey-edit.wgpkg deleted file mode 100644 index 935f94ad3..000000000 Binary files a/docs/upgrades/packages-7.6.10/root_import_survey_default-survey-edit.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.10/root_import_survey_default_gradebook_report.wgpkg b/docs/upgrades/packages-7.6.10/root_import_survey_default_gradebook_report.wgpkg deleted file mode 100644 index fe3fa9028..000000000 Binary files a/docs/upgrades/packages-7.6.10/root_import_survey_default_gradebook_report.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.10/root_import_survey_default_overview_report.wgpkg b/docs/upgrades/packages-7.6.10/root_import_survey_default_overview_report.wgpkg deleted file mode 100644 index 1c5377380..000000000 Binary files a/docs/upgrades/packages-7.6.10/root_import_survey_default_overview_report.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/matrix-default-compare-template.wgpkg b/docs/upgrades/packages-7.6.11/matrix-default-compare-template.wgpkg deleted file mode 100644 index 28ac7a27f..000000000 Binary files a/docs/upgrades/packages-7.6.11/matrix-default-compare-template.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/matrix-default-detailed-listing.wgpkg b/docs/upgrades/packages-7.6.11/matrix-default-detailed-listing.wgpkg deleted file mode 100644 index 7bbc5bdbf..000000000 Binary files a/docs/upgrades/packages-7.6.11/matrix-default-detailed-listing.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/matrix-default-view-template.wgpkg b/docs/upgrades/packages-7.6.11/matrix-default-view-template.wgpkg deleted file mode 100644 index 0826c5a42..000000000 Binary files a/docs/upgrades/packages-7.6.11/matrix-default-view-template.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/matrix-search-template.wgpkg b/docs/upgrades/packages-7.6.11/matrix-search-template.wgpkg deleted file mode 100644 index dc61044f2..000000000 Binary files a/docs/upgrades/packages-7.6.11/matrix-search-template.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_account.wgpkg b/docs/upgrades/packages-7.6.11/root_import_account.wgpkg deleted file mode 100644 index e84e71d8c..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_account.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_account_inbox_default-inbox-send-message-template.wgpkg b/docs/upgrades/packages-7.6.11/root_import_account_inbox_default-inbox-send-message-template.wgpkg deleted file mode 100644 index d3e912618..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_account_inbox_default-inbox-send-message-template.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_calendar-templates_default-calendar-event-edit.wgpkg b/docs/upgrades/packages-7.6.11/root_import_calendar-templates_default-calendar-event-edit.wgpkg deleted file mode 100644 index 2995e2ce2..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_calendar-templates_default-calendar-event-edit.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_datatable_default-datatable-template-html.wgpkg b/docs/upgrades/packages-7.6.11/root_import_datatable_default-datatable-template-html.wgpkg deleted file mode 100644 index e04ef36c3..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_datatable_default-datatable-template-html.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_datatable_default-datatable-template-yui.wgpkg b/docs/upgrades/packages-7.6.11/root_import_datatable_default-datatable-template-yui.wgpkg deleted file mode 100644 index 195aaef44..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_datatable_default-datatable-template-yui.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-edit-album.wgpkg b/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-edit-album.wgpkg deleted file mode 100644 index 9de20b857..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-edit-album.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-edit-comment.wgpkg b/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-edit-comment.wgpkg deleted file mode 100644 index 15f20c7de..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-edit-comment.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-edit-photo.wgpkg b/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-edit-photo.wgpkg deleted file mode 100644 index d79a8bb29..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-edit-photo.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-make-shortcut.wgpkg b/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-make-shortcut.wgpkg deleted file mode 100644 index 9418117c0..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-make-shortcut.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-search.wgpkg b/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-search.wgpkg deleted file mode 100644 index 881921d95..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_gallery-templates_default-gallery-search.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_survey_default-answer-edit.wgpkg b/docs/upgrades/packages-7.6.11/root_import_survey_default-answer-edit.wgpkg deleted file mode 100644 index c9085b7ea..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_survey_default-answer-edit.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_survey_default-question-edit.wgpkg b/docs/upgrades/packages-7.6.11/root_import_survey_default-question-edit.wgpkg deleted file mode 100644 index 3900118e2..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_survey_default-question-edit.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_survey_default-questions.wgpkg b/docs/upgrades/packages-7.6.11/root_import_survey_default-questions.wgpkg deleted file mode 100644 index 4385e3df5..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_survey_default-questions.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_survey_default-survey-edit.wgpkg b/docs/upgrades/packages-7.6.11/root_import_survey_default-survey-edit.wgpkg deleted file mode 100644 index 89f3385bf..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_survey_default-survey-edit.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/root_import_survey_default-survey-take.wgpkg b/docs/upgrades/packages-7.6.11/root_import_survey_default-survey-take.wgpkg deleted file mode 100644 index b72973c4c..000000000 Binary files a/docs/upgrades/packages-7.6.11/root_import_survey_default-survey-take.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.11/survey.css.wgpkg b/docs/upgrades/packages-7.6.11/survey.css.wgpkg deleted file mode 100644 index a377033b8..000000000 Binary files a/docs/upgrades/packages-7.6.11/survey.css.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/default_post_form.wgpkg b/docs/upgrades/packages-7.6.12/default_post_form.wgpkg deleted file mode 100644 index 28e531cd9..000000000 Binary files a/docs/upgrades/packages-7.6.12/default_post_form.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/default_submission_form.wgpkg b/docs/upgrades/packages-7.6.12/default_submission_form.wgpkg deleted file mode 100644 index 625ec3f5f..000000000 Binary files a/docs/upgrades/packages-7.6.12/default_submission_form.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/faq_submission_form.wgpkg b/docs/upgrades/packages-7.6.12/faq_submission_form.wgpkg deleted file mode 100644 index 2b01ed992..000000000 Binary files a/docs/upgrades/packages-7.6.12/faq_submission_form.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/job_submission_form.wgpkg b/docs/upgrades/packages-7.6.12/job_submission_form.wgpkg deleted file mode 100644 index a0785faa5..000000000 Binary files a/docs/upgrades/packages-7.6.12/job_submission_form.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/link_list_submission_form.wgpkg b/docs/upgrades/packages-7.6.12/link_list_submission_form.wgpkg deleted file mode 100644 index 6f369f0bf..000000000 Binary files a/docs/upgrades/packages-7.6.12/link_list_submission_form.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/request-tracker-template2.wgpkg b/docs/upgrades/packages-7.6.12/request-tracker-template2.wgpkg deleted file mode 100644 index 0ebaa7c8b..000000000 Binary files a/docs/upgrades/packages-7.6.12/request-tracker-template2.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/root_import_account_account.css.wgpkg b/docs/upgrades/packages-7.6.12/root_import_account_account.css.wgpkg deleted file mode 100644 index 628607b9b..000000000 Binary files a/docs/upgrades/packages-7.6.12/root_import_account_account.css.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/root_import_account_contributions_default-contributions-view.wgpkg b/docs/upgrades/packages-7.6.12/root_import_account_contributions_default-contributions-view.wgpkg deleted file mode 100644 index a1310d78c..000000000 Binary files a/docs/upgrades/packages-7.6.12/root_import_account_contributions_default-contributions-view.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/root_import_account_inbox_default-inbox-view-template.wgpkg b/docs/upgrades/packages-7.6.12/root_import_account_inbox_default-inbox-view-template.wgpkg deleted file mode 100644 index 68793ae57..000000000 Binary files a/docs/upgrades/packages-7.6.12/root_import_account_inbox_default-inbox-view-template.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-delete-album.wgpkg b/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-delete-album.wgpkg deleted file mode 100644 index dcb26da30..000000000 Binary files a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-delete-album.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-delete-file.wgpkg b/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-delete-file.wgpkg deleted file mode 100644 index 4c35daf10..000000000 Binary files a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-delete-file.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-edit-comment.wgpkg b/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-edit-comment.wgpkg deleted file mode 100644 index 5209c3608..000000000 Binary files a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-edit-comment.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-list-albums-view.wgpkg b/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-list-albums-view.wgpkg deleted file mode 100644 index 35b4d1c7c..000000000 Binary files a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-list-albums-view.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-list-files-for-user.wgpkg b/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-list-files-for-user.wgpkg deleted file mode 100644 index c7f19de93..000000000 Binary files a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-list-files-for-user.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-search.wgpkg b/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-search.wgpkg deleted file mode 100644 index 419b68adc..000000000 Binary files a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-search.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-view-album-thumbnails.wgpkg b/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-view-album-thumbnails.wgpkg deleted file mode 100644 index 57734e226..000000000 Binary files a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-view-album-thumbnails.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-view-album.wgpkg b/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-view-album.wgpkg deleted file mode 100644 index b8963796e..000000000 Binary files a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-view-album.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-view-photo.wgpkg b/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-view-photo.wgpkg deleted file mode 100644 index c1c8f3aae..000000000 Binary files a/docs/upgrades/packages-7.6.12/root_import_gallery-templates_default-gallery-view-photo.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.13/root_import_account_inbox_default-inbox-view-template.wgpkg b/docs/upgrades/packages-7.6.13/root_import_account_inbox_default-inbox-view-template.wgpkg deleted file mode 100644 index a6449c0ae..000000000 Binary files a/docs/upgrades/packages-7.6.13/root_import_account_inbox_default-inbox-view-template.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.14/matrix-default-compare-template.wgpkg b/docs/upgrades/packages-7.6.14/matrix-default-compare-template.wgpkg deleted file mode 100644 index df8544d03..000000000 Binary files a/docs/upgrades/packages-7.6.14/matrix-default-compare-template.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.14/matrix-default-detailed-listing.wgpkg b/docs/upgrades/packages-7.6.14/matrix-default-detailed-listing.wgpkg deleted file mode 100644 index 0fb429be8..000000000 Binary files a/docs/upgrades/packages-7.6.14/matrix-default-detailed-listing.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.14/matrix-default-view-template.wgpkg b/docs/upgrades/packages-7.6.14/matrix-default-view-template.wgpkg deleted file mode 100644 index d71fad48f..000000000 Binary files a/docs/upgrades/packages-7.6.14/matrix-default-view-template.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.14/matrix-search-template.wgpkg b/docs/upgrades/packages-7.6.14/matrix-search-template.wgpkg deleted file mode 100644 index 442b1c616..000000000 Binary files a/docs/upgrades/packages-7.6.14/matrix-search-template.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.14/matrix_equal-cols.js.wgpkg b/docs/upgrades/packages-7.6.14/matrix_equal-cols.js.wgpkg deleted file mode 100644 index e68679472..000000000 Binary files a/docs/upgrades/packages-7.6.14/matrix_equal-cols.js.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.14/new-matrix_matrix-nav-tmpl.wgpkg b/docs/upgrades/packages-7.6.14/new-matrix_matrix-nav-tmpl.wgpkg deleted file mode 100644 index cf62c9bed..000000000 Binary files a/docs/upgrades/packages-7.6.14/new-matrix_matrix-nav-tmpl.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.14/new-matrix_matrix-nav.wgpkg b/docs/upgrades/packages-7.6.14/new-matrix_matrix-nav.wgpkg deleted file mode 100644 index 716674912..000000000 Binary files a/docs/upgrades/packages-7.6.14/new-matrix_matrix-nav.wgpkg and /dev/null differ diff --git a/docs/upgrades/packages-7.6.14/new-matrix_matrix.css.wgpkg b/docs/upgrades/packages-7.6.14/new-matrix_matrix.css.wgpkg deleted file mode 100644 index 6d514f720..000000000 Binary files a/docs/upgrades/packages-7.6.14/new-matrix_matrix.css.wgpkg and /dev/null differ diff --git a/docs/upgrades/upgrade_7.6.10-7.6.11.pl b/docs/upgrades/upgrade_7.6.10-7.6.11.pl deleted file mode 100644 index 06f8e54e3..000000000 --- a/docs/upgrades/upgrade_7.6.10-7.6.11.pl +++ /dev/null @@ -1,220 +0,0 @@ -#!/usr/bin/env perl - -#------------------------------------------------------------------- -# WebGUI is Copyright 2001-2009 Plain Black Corporation. -#------------------------------------------------------------------- -# Please read the legal notices (docs/legal.txt) and the license -# (docs/license.txt) that came with this distribution before using -# this software. -#------------------------------------------------------------------- -# http://www.plainblack.com info@plainblack.com -#------------------------------------------------------------------- - -our ($webguiRoot); - -BEGIN { - $webguiRoot = "../.."; - unshift (@INC, $webguiRoot."/lib"); -} - -use strict; -use Getopt::Long; -use WebGUI::Session; -use WebGUI::Storage; -use WebGUI::Asset; -use WebGUI::Asset::Wobject::GalleryAlbum; - - -my $toVersion = '7.6.11'; -my $quiet; # this line required - - -my $session = start(); # this line required -hideGalleryAlbums($session); -removeBrokenWorkflowInstances($session); -undotBinaryExtensions($session); -removeProcessRecurringPaymentsFromConfig($session); -noSessionSwitch($session); -addReCaptchaSettings($session); - -fixDottedAssetIds($session); ##This one should run last -finish($session); # this line required - - -#---------------------------------------------------------------------------- -sub noSessionSwitch { - my $session = shift; - print "\tAdding noSession switch to Workflow Instances..." unless $quiet; - $session->db->write("alter table WorkflowInstance add column noSession boolean not null default 0"); - print "DONE!\n" unless $quiet; -} - -#---------------------------------------------------------------------------- -sub removeProcessRecurringPaymentsFromConfig { - my $session = shift; - print "\tRemoving old ProcessRecurringPayments workflow activity from config..." unless $quiet; - - $session->config->deleteFromArray('workflowActivities/None', - 'WebGUI::Workflow::Activity::ProcessRecurringPayments'); - - print "Done.\n" unless $quiet; -} - -#---------------------------------------------------------------------------- -sub addReCaptchaSettings { - my $session = shift; - print "\tAdding settings for reCAPTCHA..." unless $quiet; - my $currentSetting; - - $currentSetting = $session->setting->get('useRecaptcha'); - $session->setting->remove('useRecaptcha'); - $session->setting->add('useRecaptcha', $currentSetting); - - $currentSetting = $session->setting->get('recaptchaPublicKey'); - $session->setting->remove('recaptchaPublicKey'); - $session->setting->add('recaptchaPublicKey', $currentSetting); - - $currentSetting = $session->setting->get('recaptchaPrivateKey'); - $session->setting->remove('recaptchaPrivateKey'); - $session->setting->add('recaptchaPrivateKey', $currentSetting); - - print "Done.\n" unless $quiet; -} - -#---------------------------------------------------------------------------- -sub hideGalleryAlbums { - my $session = shift; - print "\tHiding all Gallery Albums from Navigation... " unless $quiet; - # and here's our code - my $getAnAlbum = WebGUI::Asset::Wobject::GalleryAlbum->getIsa($session); - while (my $album = $getAnAlbum->()) { - $album->update({}); ##The album will do the hiding automatically now - } - print "DONE!\n" unless $quiet; -} - -#---------------------------------------------------------------------------- -sub undotBinaryExtensions { - my $session = shift; - print "\tRemoving dots from list of exportBinaryExtensions... " unless $quiet; - # and here's our code - my $extensions = $session->config->get('exportBinaryExtensions'); - my @newExtensions = map { s/\.//; $_ } @{ $extensions }; - $session->config->set('exportBinaryExtensions', \@newExtensions); - print "DONE!\n" unless $quiet; -} - -#---------------------------------------------------------------------------- -sub fixDottedAssetIds { - my $session = shift; - print "\tRemoving dots from Asset IDs... " unless $quiet; - my @assetIds = $session->db->buildArray("select distinct(assetId) from asset where assetId like '%.%'"); - my %assetIds = map { my $id = $_; $id =~ tr/./-/; $_ => $id } @assetIds; - # and here's our code - while (my ($fromId, $toId) = each %assetIds) { - $session->db->write('UPDATE `assetData` SET `assetId`=? WHERE `assetId`=?', [$toId, $fromId]); - $session->db->write('UPDATE `asset` SET `assetId`=? WHERE `assetId`=?', [$toId, $fromId]); - $session->db->write('UPDATE `assetIndex` SET `assetId`=? WHERE `assetId`=?', [$toId, $fromId]); - $session->db->write('UPDATE `wobject` SET `assetId`=? WHERE `assetId`=?', [$toId, $fromId]); - $session->db->write('UPDATE `Folder` SET `assetId`=? WHERE `assetId`=?', [$toId, $fromId]); - $session->db->write('UPDATE `Navigation` SET `assetId`=? WHERE `assetId`=?', [$toId, $fromId]); - $session->db->write('UPDATE `FileAsset` SET `assetId`=? WHERE `assetId`=?', [$toId, $fromId]); - $session->db->write('UPDATE `ImageAsset` SET `assetId`=? WHERE `assetId`=?', [$toId, $fromId]); - $session->db->write('UPDATE `snippet` SET `assetId`=? WHERE `assetId`=?', [$toId, $fromId]); - - $session->db->write('UPDATE `asset` SET `parentId`=? WHERE `parentId`=?', [$toId, $fromId]); - } - print "DONE!\n" unless $quiet; -} - -#---------------------------------------------------------------------------- -sub removeBrokenWorkflowInstances { - my $session = shift; - print "\tRemove Workflow Instances whose Workflows have been deleted... " unless $quiet; - # and here's our code - my $instances = WebGUI::Workflow::Instance->getAllInstances($session); - foreach my $instance (@{ $instances }) { - my $workflow = $instance->getWorkflow; - $instance->delete('skipNotify') if !defined $workflow; - } - print "DONE!\n" unless $quiet; -} - -# -------------- DO NOT EDIT BELOW THIS LINE -------------------------------- - -#---------------------------------------------------------------------------- -# Add a package to the import node -sub addPackage { - my $session = shift; - my $file = shift; - - # Make a storage location for the package - my $storage = WebGUI::Storage->createTemp( $session ); - $storage->addFileFromFilesystem( $file ); - - # Import the package into the import node - my $package = WebGUI::Asset->getImportNode($session)->importPackage( $storage ); - - # Make the package not a package anymore - $package->update({ isPackage => 0 }); - - # Set the default flag for templates added - my $assetIds - = $package->getLineage( ['self','descendants'], { - includeOnlyClasses => [ 'WebGUI::Asset::Template' ], - } ); - for my $assetId ( @{ $assetIds } ) { - my $asset = WebGUI::Asset->newByDynamicClass( $session, $assetId ); - if ( !$asset ) { - print "Couldn't instantiate asset with ID '$assetId'. Please check package '$file' for corruption.\n"; - next; - } - $asset->update( { isDefault => 1 } ); - } - - return; -} - -#------------------------------------------------- -sub start { - my $configFile; - $|=1; #disable output buffering - GetOptions( - 'configFile=s'=>\$configFile, - 'quiet'=>\$quiet - ); - my $session = WebGUI::Session->open($webguiRoot,$configFile); - $session->user({userId=>3}); - my $versionTag = WebGUI::VersionTag->getWorking($session); - $versionTag->set({name=>"Upgrade to ".$toVersion}); - return $session; -} - -#------------------------------------------------- -sub finish { - my $session = shift; - updateTemplates($session); - my $versionTag = WebGUI::VersionTag->getWorking($session); - $versionTag->commit; - $session->db->write("insert into webguiVersion values (".$session->db->quote($toVersion).",'upgrade',".$session->datetime->time().")"); - $session->close(); -} - -#------------------------------------------------- -sub updateTemplates { - my $session = shift; - return undef unless (-d "packages-".$toVersion); - print "\tUpdating packages.\n" unless ($quiet); - opendir(DIR,"packages-".$toVersion); - my @files = readdir(DIR); - closedir(DIR); - my $newFolder = undef; - foreach my $file (@files) { - next unless ($file =~ /\.wgpkg$/); - # Fix the filename to include a path - $file = "packages-" . $toVersion . "/" . $file; - addPackage( $session, $file ); - } -} - -#vim:ft=perl diff --git a/docs/upgrades/upgrade_7.6.11-7.6.12.pl b/docs/upgrades/upgrade_7.6.11-7.6.12.pl deleted file mode 100644 index 14f5388b2..000000000 --- a/docs/upgrades/upgrade_7.6.11-7.6.12.pl +++ /dev/null @@ -1,185 +0,0 @@ -#!/usr/bin/env perl - -#------------------------------------------------------------------- -# WebGUI is Copyright 2001-2009 Plain Black Corporation. -#------------------------------------------------------------------- -# Please read the legal notices (docs/legal.txt) and the license -# (docs/license.txt) that came with this distribution before using -# this software. -#------------------------------------------------------------------- -# http://www.plainblack.com info@plainblack.com -#------------------------------------------------------------------- - -our ($webguiRoot); - -BEGIN { - $webguiRoot = "../.."; - unshift (@INC, $webguiRoot."/lib"); -} - -use strict; -use Getopt::Long; -use WebGUI::Session; -use WebGUI::Storage; -use WebGUI::Asset; -use WebGUI::Utility qw/isIn/; - - -my $toVersion = '7.6.12'; -my $quiet; # this line required - - -my $session = start(); # this line required -addAssetDiscoveryServiceAgain( $session ); -changeMatrixAttributeIndexing( $session ); -fixCollaborationGroupToEditPost( $session ); -convertLongVarcharsToText( $session ); - -# upgrade functions go here - -finish($session); # this line required - - -#---------------------------------------------------------------------------- -# Describe what our function does -#sub exampleFunction { -# my $session = shift; -# print "\tWe're doing some stuff here that you should know about... " unless $quiet; -# # and here's our code -# print "DONE!\n" unless $quiet; -#} - -#---------------------------------------------------------------------------- -sub convertLongVarcharsToText { - my $session = shift; - print "\tConverting Survey VARCHAR fields to TEXT... " unless $quiet; - $session->db->write("ALTER TABLE Survey MODIFY COLUMN exitURL TEXT"); - $session->db->write("ALTER TABLE Survey_tempReport MODIFY COLUMN sectionName TEXT"); - $session->db->write("ALTER TABLE Survey_tempReport MODIFY COLUMN questionName TEXT"); - # and here's our code - print "Done.\n" unless $quiet; -} - -#---------------------------------------------------------------------------- -sub addAssetDiscoveryServiceAgain { - my $session = shift; - print "\tAdding asset discovery service..." unless $quiet; - my @handlers = @{ $session->config->get('contentHandlers') }; - if (isIn( 'WebGUI::Content::AssetDiscovery', @handlers) ) { - print "Done.\n" unless $quiet; - return; - } - my @newHandlers = (); - foreach my $handler (@handlers) { - if ($handler eq 'WebGUI::Content::Operation') { - push @newHandlers, 'WebGUI::Content::AssetDiscovery'; - } - push @newHandlers, $handler; - } - $session->config->set('contentHandlers', \@newHandlers); - print "Done.\n" unless $quiet; -} - -#---------------------------------------------------------------------------- -sub changeMatrixAttributeIndexing { - my $session = shift; - print "\tChanging Matrix attribute indexing..." unless $quiet; - $session->db->write("alter table MatrixListing_attribute drop primary key, add primary key(attributeId,matrixListingId)"); - print "Done.\n" unless $quiet; -} - -#---------------------------------------------------------------------------- -# Fix the groupToEditPost in the Collaboration (should not be "") -sub fixCollaborationGroupToEditPost { - my $session = shift; - print "\tFixing group to edit post in Collaboration..." unless $quiet; - # and here's our code - $session->db->write(<<'SQL'); -UPDATE Collaboration -SET groupToEditPost= ( - SELECT groupIdEdit FROM assetData - WHERE assetData.assetId=Collaboration.assetId - AND assetData.revisionDate = Collaboration.revisionDate -) -WHERE groupToEditPost = ""; -SQL - print "DONE!\n" unless $quiet; -} -# -------------- DO NOT EDIT BELOW THIS LINE -------------------------------- - -#---------------------------------------------------------------------------- -# Add a package to the import node -sub addPackage { - my $session = shift; - my $file = shift; - - # Make a storage location for the package - my $storage = WebGUI::Storage->createTemp( $session ); - $storage->addFileFromFilesystem( $file ); - - # Import the package into the import node - my $package = WebGUI::Asset->getImportNode($session)->importPackage( $storage ); - - # Make the package not a package anymore - $package->update({ isPackage => 0 }); - - # Set the default flag for templates added - my $assetIds - = $package->getLineage( ['self','descendants'], { - includeOnlyClasses => [ 'WebGUI::Asset::Template' ], - } ); - for my $assetId ( @{ $assetIds } ) { - my $asset = WebGUI::Asset->newByDynamicClass( $session, $assetId ); - if ( !$asset ) { - print "Couldn't instantiate asset with ID '$assetId'. Please check package '$file' for corruption.\n"; - next; - } - $asset->update( { isDefault => 1 } ); - } - - return; -} - -#------------------------------------------------- -sub start { - my $configFile; - $|=1; #disable output buffering - GetOptions( - 'configFile=s'=>\$configFile, - 'quiet'=>\$quiet - ); - my $session = WebGUI::Session->open($webguiRoot,$configFile); - $session->user({userId=>3}); - my $versionTag = WebGUI::VersionTag->getWorking($session); - $versionTag->set({name=>"Upgrade to ".$toVersion}); - return $session; -} - -#------------------------------------------------- -sub finish { - my $session = shift; - updateTemplates($session); - my $versionTag = WebGUI::VersionTag->getWorking($session); - $versionTag->commit; - $session->db->write("insert into webguiVersion values (".$session->db->quote($toVersion).",'upgrade',".$session->datetime->time().")"); - $session->close(); -} - -#------------------------------------------------- -sub updateTemplates { - my $session = shift; - return undef unless (-d "packages-".$toVersion); - print "\tUpdating packages.\n" unless ($quiet); - opendir(DIR,"packages-".$toVersion); - my @files = readdir(DIR); - closedir(DIR); - my $newFolder = undef; - foreach my $file (@files) { - next unless ($file =~ /\.wgpkg$/); - # Fix the filename to include a path - $file = "packages-" . $toVersion . "/" . $file; - addPackage( $session, $file ); - } -} - -#vim:ft=perl diff --git a/docs/upgrades/upgrade_7.6.12-7.6.13.pl b/docs/upgrades/upgrade_7.6.12-7.6.13.pl deleted file mode 100644 index bafa016ce..000000000 --- a/docs/upgrades/upgrade_7.6.12-7.6.13.pl +++ /dev/null @@ -1,125 +0,0 @@ -#!/usr/bin/env perl - -#------------------------------------------------------------------- -# WebGUI is Copyright 2001-2009 Plain Black Corporation. -#------------------------------------------------------------------- -# Please read the legal notices (docs/legal.txt) and the license -# (docs/license.txt) that came with this distribution before using -# this software. -#------------------------------------------------------------------- -# http://www.plainblack.com info@plainblack.com -#------------------------------------------------------------------- - -our ($webguiRoot); - -BEGIN { - $webguiRoot = "../.."; - unshift (@INC, $webguiRoot."/lib"); -} - -use strict; -use Getopt::Long; -use WebGUI::Session; -use WebGUI::Storage; -use WebGUI::Asset; - - -my $toVersion = '7.6.13'; -my $quiet; # this line required - - -my $session = start(); # this line required - -# upgrade functions go here - -finish($session); # this line required - - -#---------------------------------------------------------------------------- -# Describe what our function does -#sub exampleFunction { -# my $session = shift; -# print "\tWe're doing some stuff here that you should know about... " unless $quiet; -# # and here's our code -# print "DONE!\n" unless $quiet; -#} - - -# -------------- DO NOT EDIT BELOW THIS LINE -------------------------------- - -#---------------------------------------------------------------------------- -# Add a package to the import node -sub addPackage { - my $session = shift; - my $file = shift; - - # Make a storage location for the package - my $storage = WebGUI::Storage->createTemp( $session ); - $storage->addFileFromFilesystem( $file ); - - # Import the package into the import node - my $package = WebGUI::Asset->getImportNode($session)->importPackage( $storage ); - - # Make the package not a package anymore - $package->update({ isPackage => 0 }); - - # Set the default flag for templates added - my $assetIds - = $package->getLineage( ['self','descendants'], { - includeOnlyClasses => [ 'WebGUI::Asset::Template' ], - } ); - for my $assetId ( @{ $assetIds } ) { - my $asset = WebGUI::Asset->newByDynamicClass( $session, $assetId ); - if ( !$asset ) { - print "Couldn't instantiate asset with ID '$assetId'. Please check package '$file' for corruption.\n"; - next; - } - $asset->update( { isDefault => 1 } ); - } - - return; -} - -#------------------------------------------------- -sub start { - my $configFile; - $|=1; #disable output buffering - GetOptions( - 'configFile=s'=>\$configFile, - 'quiet'=>\$quiet - ); - my $session = WebGUI::Session->open($webguiRoot,$configFile); - $session->user({userId=>3}); - my $versionTag = WebGUI::VersionTag->getWorking($session); - $versionTag->set({name=>"Upgrade to ".$toVersion}); - return $session; -} - -#------------------------------------------------- -sub finish { - my $session = shift; - updateTemplates($session); - my $versionTag = WebGUI::VersionTag->getWorking($session); - $versionTag->commit; - $session->db->write("insert into webguiVersion values (".$session->db->quote($toVersion).",'upgrade',".$session->datetime->time().")"); - $session->close(); -} - -#------------------------------------------------- -sub updateTemplates { - my $session = shift; - return undef unless (-d "packages-".$toVersion); - print "\tUpdating packages.\n" unless ($quiet); - opendir(DIR,"packages-".$toVersion); - my @files = readdir(DIR); - closedir(DIR); - my $newFolder = undef; - foreach my $file (@files) { - next unless ($file =~ /\.wgpkg$/); - # Fix the filename to include a path - $file = "packages-" . $toVersion . "/" . $file; - addPackage( $session, $file ); - } -} - -#vim:ft=perl diff --git a/docs/upgrades/upgrade_7.6.13-7.6.14.pl b/docs/upgrades/upgrade_7.6.13-7.6.14.pl deleted file mode 100644 index 436e9ff4e..000000000 --- a/docs/upgrades/upgrade_7.6.13-7.6.14.pl +++ /dev/null @@ -1,125 +0,0 @@ -#!/usr/bin/env perl - -#------------------------------------------------------------------- -# WebGUI is Copyright 2001-2009 Plain Black Corporation. -#------------------------------------------------------------------- -# Please read the legal notices (docs/legal.txt) and the license -# (docs/license.txt) that came with this distribution before using -# this software. -#------------------------------------------------------------------- -# http://www.plainblack.com info@plainblack.com -#------------------------------------------------------------------- - -our ($webguiRoot); - -BEGIN { - $webguiRoot = "../.."; - unshift (@INC, $webguiRoot."/lib"); -} - -use strict; -use Getopt::Long; -use WebGUI::Session; -use WebGUI::Storage; -use WebGUI::Asset; - - -my $toVersion = '7.6.14'; -my $quiet; # this line required - - -my $session = start(); # this line required - -# upgrade functions go here - -finish($session); # this line required - - -#---------------------------------------------------------------------------- -# Describe what our function does -#sub exampleFunction { -# my $session = shift; -# print "\tWe're doing some stuff here that you should know about... " unless $quiet; -# # and here's our code -# print "DONE!\n" unless $quiet; -#} - - -# -------------- DO NOT EDIT BELOW THIS LINE -------------------------------- - -#---------------------------------------------------------------------------- -# Add a package to the import node -sub addPackage { - my $session = shift; - my $file = shift; - - # Make a storage location for the package - my $storage = WebGUI::Storage->createTemp( $session ); - $storage->addFileFromFilesystem( $file ); - - # Import the package into the import node - my $package = WebGUI::Asset->getImportNode($session)->importPackage( $storage ); - - # Make the package not a package anymore - $package->update({ isPackage => 0 }); - - # Set the default flag for templates added - my $assetIds - = $package->getLineage( ['self','descendants'], { - includeOnlyClasses => [ 'WebGUI::Asset::Template' ], - } ); - for my $assetId ( @{ $assetIds } ) { - my $asset = WebGUI::Asset->newByDynamicClass( $session, $assetId ); - if ( !$asset ) { - print "Couldn't instantiate asset with ID '$assetId'. Please check package '$file' for corruption.\n"; - next; - } - $asset->update( { isDefault => 1 } ); - } - - return; -} - -#------------------------------------------------- -sub start { - my $configFile; - $|=1; #disable output buffering - GetOptions( - 'configFile=s'=>\$configFile, - 'quiet'=>\$quiet - ); - my $session = WebGUI::Session->open($webguiRoot,$configFile); - $session->user({userId=>3}); - my $versionTag = WebGUI::VersionTag->getWorking($session); - $versionTag->set({name=>"Upgrade to ".$toVersion}); - return $session; -} - -#------------------------------------------------- -sub finish { - my $session = shift; - updateTemplates($session); - my $versionTag = WebGUI::VersionTag->getWorking($session); - $versionTag->commit; - $session->db->write("insert into webguiVersion values (".$session->db->quote($toVersion).",'upgrade',".$session->datetime->time().")"); - $session->close(); -} - -#------------------------------------------------- -sub updateTemplates { - my $session = shift; - return undef unless (-d "packages-".$toVersion); - print "\tUpdating packages.\n" unless ($quiet); - opendir(DIR,"packages-".$toVersion); - my @files = readdir(DIR); - closedir(DIR); - my $newFolder = undef; - foreach my $file (@files) { - next unless ($file =~ /\.wgpkg$/); - # Fix the filename to include a path - $file = "packages-" . $toVersion . "/" . $file; - addPackage( $session, $file ); - } -} - -#vim:ft=perl