diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-01-30 15:41:06 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-01-30 15:41:06 -0100 |
commit | ee81f3717cc03f5aa80dea13d075e7eea3898059 (patch) | |
tree | 0af1cd7a123e419cc32a56b2770a8c4e52ddb0fb /lib/Migration | |
parent | ed6833d7af9631b189a4e13b19c144d1de262a4b (diff) |
varchar(255) -> varchar(2000)
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Migration')
-rw-r--r-- | lib/Migration/Version0002Date20190118124201.php | 6 | ||||
-rw-r--r-- | lib/Migration/Version0002Date20190118124202.php | 2 | ||||
-rw-r--r-- | lib/Migration/Version0002Date20190118124203.php | 6 | ||||
-rw-r--r-- | lib/Migration/Version0002Date20190118124204.php | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/lib/Migration/Version0002Date20190118124201.php b/lib/Migration/Version0002Date20190118124201.php index e1838911..f1b1b8f9 100644 --- a/lib/Migration/Version0002Date20190118124201.php +++ b/lib/Migration/Version0002Date20190118124201.php @@ -55,7 +55,7 @@ class Version0002Date20190118124201 extends SimpleMigrationStep { /** @var array */ - public static $editToChar255 = [ + public static $editToChar2000 = [ [CoreRequestBuilder::TABLE_CACHE_DOCUMENTS, 'id'], [CoreRequestBuilder::TABLE_CACHE_DOCUMENTS, 'url'], [CoreRequestBuilder::TABLE_CACHE_DOCUMENTS, 'local_copy'], @@ -109,7 +109,7 @@ class Version0002Date20190118124201 extends SimpleMigrationStep { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); - foreach (self::$editToChar255 as $edit) { + foreach (self::$editToChar2000 as $edit) { list($tableName, $field) = $edit; $table = $schema->getTable($tableName); @@ -129,7 +129,7 @@ class Version0002Date20190118124201 extends SimpleMigrationStep { * @param array $options */ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { - foreach (self::$editToChar255 as $edit) { + foreach (self::$editToChar2000 as $edit) { list($tableName, $field) = $edit; $qb = $this->connection->getQueryBuilder(); diff --git a/lib/Migration/Version0002Date20190118124202.php b/lib/Migration/Version0002Date20190118124202.php index 88b45972..3047318f 100644 --- a/lib/Migration/Version0002Date20190118124202.php +++ b/lib/Migration/Version0002Date20190118124202.php @@ -59,7 +59,7 @@ class Version0002Date20190118124202 extends SimpleMigrationStep { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); - foreach (Version0002Date20190118124201::$editToChar255 as $edit) { + foreach (Version0002Date20190118124201::$editToChar2000 as $edit) { list($tableName, $field) = $edit; $table = $schema->getTable($tableName); diff --git a/lib/Migration/Version0002Date20190118124203.php b/lib/Migration/Version0002Date20190118124203.php index cde2c983..458a30cb 100644 --- a/lib/Migration/Version0002Date20190118124203.php +++ b/lib/Migration/Version0002Date20190118124203.php @@ -76,7 +76,7 @@ class Version0002Date20190118124203 extends SimpleMigrationStep { $schema = $schemaClosure(); // -> VARCHAR(4000) - foreach (Version0002Date20190118124201::$editToChar255 as $edit) { + foreach (Version0002Date20190118124201::$editToChar2000 as $edit) { list($tableName, $field) = $edit; $table = $schema->getTable($tableName); @@ -84,7 +84,7 @@ class Version0002Date20190118124203 extends SimpleMigrationStep { continue; } - $table->addColumn($field, Type::STRING, ['notnull' => false, 'length' => 255]); + $table->addColumn($field, Type::STRING, ['notnull' => false, 'length' => 2000]); } return $schema; @@ -98,7 +98,7 @@ class Version0002Date20190118124203 extends SimpleMigrationStep { */ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { - foreach (Version0002Date20190118124201::$editToChar255 as $edit) { + foreach (Version0002Date20190118124201::$editToChar2000 as $edit) { list($table, $field) = $edit; $qb = $this->connection->getQueryBuilder(); diff --git a/lib/Migration/Version0002Date20190118124204.php b/lib/Migration/Version0002Date20190118124204.php index 21609423..c484c1fd 100644 --- a/lib/Migration/Version0002Date20190118124204.php +++ b/lib/Migration/Version0002Date20190118124204.php @@ -61,7 +61,7 @@ class Version0002Date20190118124204 extends SimpleMigrationStep { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); - foreach (Version0002Date20190118124201::$editToChar255 as $edit) { + foreach (Version0002Date20190118124201::$editToChar2000 as $edit) { list($tableName, $field) = $edit; $table = $schema->getTable($tableName); |