mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE: Versioned fixed to use DB-specific ID auto-increment settings
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@72916 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
aec798623e
commit
8479c88e09
@ -181,7 +181,7 @@ class Versioned extends DataObjectDecorator {
|
||||
foreach($this->stages as $stage) {
|
||||
// Extra tables for _Live, etc.
|
||||
if($stage != $this->defaultStage) {
|
||||
DB::requireTable("{$table}_$stage", $fields, $indexes);
|
||||
DB::requireTable("{$table}_$stage", $fields, $indexes, false);
|
||||
/*
|
||||
if(!DB::query("SELECT * FROM {$table}_$stage")->value()) {
|
||||
$fieldList = implode(", ",array_keys($fields));
|
||||
|
Loading…
Reference in New Issue
Block a user