mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '3.0'
This commit is contained in:
commit
f1c021ff22
@ -208,7 +208,7 @@ class Versioned extends DataExtension {
|
|||||||
$tempName = 'ExclusionarySource_'.$excluding;
|
$tempName = 'ExclusionarySource_'.$excluding;
|
||||||
$excludingTable = $baseTable . ($excluding && $excluding != $this->defaultStage ? "_$excluding" : '');
|
$excludingTable = $baseTable . ($excluding && $excluding != $this->defaultStage ? "_$excluding" : '');
|
||||||
|
|
||||||
$query->addWhere('"'.$baseTable.'"."ID" NOT IN (SELECT ID FROM "'.$tempName.'")');
|
$query->addWhere('"'.$baseTable.'"."ID" NOT IN (SELECT "ID" FROM "'.$tempName.'")');
|
||||||
$query->renameTable($tempName, $excludingTable);
|
$query->renameTable($tempName, $excludingTable);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user