mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Fix Versioned's stage_unique mode on PostgreSQL.
This commit is contained in:
parent
ed0341e82f
commit
87685eefdd
@ -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…
x
Reference in New Issue
Block a user