BUGFIX MSSQLDatabase - fixed bigint broken on dev/build, it shouldn't have a column width

This commit is contained in:
Sean Harvey 2009-07-28 03:48:52 +00:00
parent 8e7516e537
commit 4c2cb7f3e9

View File

@ -568,7 +568,7 @@ class MSSQLDatabase extends Database {
case 'numeric':
case 'float':
case 'bit':
if($sizeSuffix = $field['numeric_precision']) {
if($field['data_type'] != 'bigint' && $sizeSuffix = $field['numeric_precision']) {
$field['data_type'] .= "($sizeSuffix)";
}
@ -1027,11 +1027,11 @@ class MSSQLDatabase extends Database {
function IdColumn($asDbValue=false, $hasAutoIncPK=true){
if($asDbValue)
return 'bigint(19) not null';
return 'bigint not null';
else {
if($hasAutoIncPK)
return 'bigint(19) identity(1,1)';
else return 'bigint(19) not null';
return 'bigint identity(1,1)';
else return 'bigint not null';
}
}