From ae1527dc2b7f77391a0ab0a9b99c6c371555946e Mon Sep 17 00:00:00 2001 From: dereuromark Date: Tue, 11 Oct 2016 17:38:06 +0200 Subject: [PATCH] Change the default form field type to text not textarea. --- src/Database/Schema/MysqlSchema.php | 2 +- src/Database/Schema/PostgresSchema.php | 2 +- src/Database/Schema/SqlserverSchema.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Database/Schema/MysqlSchema.php b/src/Database/Schema/MysqlSchema.php index 99c7d38bee5..9e9f7d63960 100644 --- a/src/Database/Schema/MysqlSchema.php +++ b/src/Database/Schema/MysqlSchema.php @@ -148,7 +148,7 @@ protected function _convertColumn($column) return ['type' => 'json', 'length' => null]; } - return ['type' => 'text', 'length' => null]; + return ['type' => 'string', 'length' => null]; } /** diff --git a/src/Database/Schema/PostgresSchema.php b/src/Database/Schema/PostgresSchema.php index bf9cdcab1f0..e86e91894e6 100644 --- a/src/Database/Schema/PostgresSchema.php +++ b/src/Database/Schema/PostgresSchema.php @@ -137,7 +137,7 @@ protected function _convertColumn($column) return ['type' => 'json', 'length' => null]; } - return ['type' => 'text', 'length' => null]; + return ['type' => 'string', 'length' => null]; } /** diff --git a/src/Database/Schema/SqlserverSchema.php b/src/Database/Schema/SqlserverSchema.php index df72a45d21a..be84f3179b1 100644 --- a/src/Database/Schema/SqlserverSchema.php +++ b/src/Database/Schema/SqlserverSchema.php @@ -138,7 +138,7 @@ protected function _convertColumn($col, $length = null, $precision = null, $scal return ['type' => 'uuid']; } - return ['type' => 'text', 'length' => null]; + return ['type' => 'string', 'length' => null]; } /**