From e65bfb893d127e575ee42cca738ac411cf23b2e5 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 30 Aug 2010 05:49:45 +0000 Subject: [PATCH] MINOR Make dev/build not constantly show a changed index because of whitespace between VersionID and Version in the index spec git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@110205 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Versioned.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/model/Versioned.php b/core/model/Versioned.php index 6fea558c1..031963bb5 100755 --- a/core/model/Versioned.php +++ b/core/model/Versioned.php @@ -62,7 +62,7 @@ class Versioned extends DataObjectDecorator { * @var array $indexes_for_versions_table */ static $indexes_for_versions_table = array( - 'RecordID_Version' => '(RecordID, Version)', + 'RecordID_Version' => '(RecordID,Version)', 'RecordID' => true, 'Version' => true, 'AuthorID' => true, @@ -287,7 +287,7 @@ class Versioned extends DataObjectDecorator { $versionIndexes = array_merge( array( - 'RecordID_Version' => array('type' => 'unique', 'value' => 'RecordID, Version'), + 'RecordID_Version' => array('type' => 'unique', 'value' => 'RecordID,Version'), 'RecordID' => true, 'Version' => true, ),