Browse Source

Merge pull request #4773 from antograssiot/issue#4772

consider TINYTEXT as TEXT
José Lorenzo Rodríguez 11 years ago
parent
commit
274cedb240

+ 1 - 1
src/Database/Schema/MysqlSchema.php

@@ -106,7 +106,7 @@ class MysqlSchema extends BaseSchema {
 		if ($col === 'char') {
 			return ['type' => 'string', 'fixed' => true, 'length' => $length];
 		}
-		if (strpos($col, 'char') !== false || $col === 'tinytext') {
+		if (strpos($col, 'char') !== false) {
 			return ['type' => 'string', 'length' => $length];
 		}
 		if (strpos($col, 'text') !== false) {

+ 1 - 1
tests/TestCase/Database/Schema/MysqlSchemaTest.php

@@ -97,7 +97,7 @@ class MysqlSchemaTest extends TestCase {
 			],
 			[
 				'TINYTEXT',
-				['type' => 'string', 'length' => null]
+				['type' => 'text', 'length' => null]
 			],
 			[
 				'BLOB',