mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
BUGFIX Fixed dev/build always showing changes in nvarchar fields because of a stray whitespace in the spec value
This commit is contained in:
parent
77f453c036
commit
f211d2cea8
@ -965,8 +965,8 @@ class MSSQLDatabase extends SS_Database {
|
||||
* @return string
|
||||
*/
|
||||
public function text($values) {
|
||||
$collation = self::$collation ? "COLLATE " . self::$collation : "";
|
||||
return "nvarchar(max) $collation null";
|
||||
$collation = self::$collation ? " COLLATE " . self::$collation : "";
|
||||
return "nvarchar(max)$collation null";
|
||||
}
|
||||
|
||||
/**
|
||||
@ -986,8 +986,8 @@ class MSSQLDatabase extends SS_Database {
|
||||
* @return string
|
||||
*/
|
||||
public function varchar($values) {
|
||||
$collation = self::$collation ? "COLLATE " . self::$collation : "";
|
||||
return "nvarchar(" . $values['precision'] . ") $collation null";
|
||||
$collation = self::$collation ? " COLLATE " . self::$collation : "";
|
||||
return "nvarchar(" . $values['precision'] . ")$collation null";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user