Browse Source

Fix failing sqlserverschema tests

Walther Lalk 12 years ago
parent
commit
aca68e2441
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tests/TestCase/Database/Schema/SqlserverSchemaTest.php

+ 3 - 3
tests/TestCase/Database/Schema/SqlserverSchemaTest.php

@@ -43,7 +43,7 @@ class SqlserverSchemaTest extends TestCase {
  */
 	protected function _needsConnection() {
 		$config = ConnectionManager::config('test');
-		$this->skipIf(strpos($config['className'], 'Sqlserver') === false, 'Not using Sqlserver for test config');
+		$this->skipIf(strpos($config['driver'], 'Sqlserver') === false, 'Not using Sqlserver for test config');
 	}
 
 /**
@@ -290,7 +290,7 @@ SQL;
 				'type' => 'biginteger',
 				'null' => false,
 				'default' => null,
-				'length' => 20,
+				'length' => 19,
 				'precision' => null,
 				'unsigned' => null,
 				'autoIncrement' => null,
@@ -343,7 +343,7 @@ SQL;
 				'comment' => null,
 			],
 			'created' => [
-				'type' => 'datetime',
+				'type' => 'timestamp',
 				'null' => true,
 				'default' => null,
 				'length' => null,