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:
Geoff Munn 2009-03-11 21:44:58 +00:00
parent aec798623e
commit 8479c88e09

View File

@ -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));