removed SQL Form from the distro
This commit is contained in:
parent
6cb58eb73e
commit
7bdf22e412
13 changed files with 35 additions and 6647 deletions
|
|
@ -1,5 +1,8 @@
|
|||
7.5.11
|
||||
- rfe: Not being limited to single-worded Tags
|
||||
- SQL Form no longer ships with WebGUI. Use Thingy instead. However, out of
|
||||
respect for those using it, we only uninstall it if you have no sites using
|
||||
it.
|
||||
- AssetProxy macro can now use asset id as a parameter like so:
|
||||
^AssetProxy(abcdefghijklmnopqrstuv,assetId);
|
||||
- Exposed keywords API to all assets through edit screen. Now keywords are
|
||||
|
|
|
|||
|
|
@ -16,6 +16,12 @@ save you many hours of grief.
|
|||
Image::ExifTool
|
||||
List::MoreUtils
|
||||
|
||||
* SQL Form is no longer part of the official distribution of WebGUI,
|
||||
but is still being actively maintained by third-parties. However, if you
|
||||
don't want to use SQL Form any longer, make sure you delete all SQL Forms
|
||||
from your site prior to the upgrade *and* purge them from your trash. Then
|
||||
the upgrade will automatically uninstall the SQL Form from your site.
|
||||
|
||||
* WebGUI versions since 7.3.0 (when the new Calendar was added)
|
||||
have allowed users to post Events to Calendars, but the owner of
|
||||
the Event has been saved as Admin (user ID 3). Also, anyone who
|
||||
|
|
|
|||
|
|
@ -64,10 +64,36 @@ migrateSubscriptions( $session );
|
|||
updateUsersOfCommerceMacros($session);
|
||||
addDBLinkAccessToSQLMacro($session);
|
||||
addAssetManager( $session );
|
||||
removeSqlForm($session);
|
||||
migratePaymentPlugins( $session );
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub removeSqlForm {
|
||||
my $session = shift;
|
||||
print "\tOptionally removing SQL Form...\n" unless $quiet;
|
||||
my $db = $session->db;
|
||||
unless ($db->quickScalar("select count(*) from asset where className='WebGUI::Asset::Wobject::SQLForm'")) {
|
||||
print "\t\tNot using it, so we're uninstalling it.\n" unless $quiet;
|
||||
$session->config->deleteFromArray("assets","WebGUI::Asset::Wobject::SQLForm");
|
||||
my @ids = $db->buildArray("select distinct assetId from template where namespace like 'SQLForm%'");
|
||||
push @ids, qw(GnrXtoFFeXia3vDQuSHojw k8vxD4fuKKf5cGwNTw0sLw);
|
||||
foreach my $id (@ids) {
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($session, $id);
|
||||
if (defined $asset) {
|
||||
$asset->purge;
|
||||
}
|
||||
}
|
||||
foreach my $table (qw(SQLForm_fieldDefinitions SQLForm SQLForm_fieldTypes SQLForm_regexes)) {
|
||||
$db->write("drop table $table");
|
||||
}
|
||||
}
|
||||
else {
|
||||
print "\t\tThis site uses SQL Form, so we won't uninstall it.\n" unless $quiet;
|
||||
}
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub changeRealtimeWorkflows {
|
||||
my $session = shift;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue