kopia lustrzana https://github.com/nextcloud/social
varchar(2000) -> varchar(1000)
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/439/head
rodzic
d72c20ba9b
commit
e30dafa100
|
@ -55,7 +55,7 @@ class Version0002Date20190226000001 extends SimpleMigrationStep {
|
|||
|
||||
|
||||
/** @var array */
|
||||
public static $editToChar2000 = [
|
||||
public static $editToChar1000 = [
|
||||
[CoreRequestBuilder::TABLE_CACHE_ACTORS, 'id'],
|
||||
[CoreRequestBuilder::TABLE_CACHE_ACTORS, 'following'],
|
||||
[CoreRequestBuilder::TABLE_CACHE_ACTORS, 'followers'],
|
||||
|
@ -118,7 +118,7 @@ class Version0002Date20190226000001 extends SimpleMigrationStep {
|
|||
/** @var ISchemaWrapper $schema */
|
||||
$schema = $schemaClosure();
|
||||
|
||||
foreach (array_merge(self::$editToText, self::$editToChar2000) as $edit) {
|
||||
foreach (array_merge(self::$editToText, self::$editToChar1000) as $edit) {
|
||||
list($tableName, $field) = $edit;
|
||||
|
||||
$table = $schema->getTable($tableName);
|
||||
|
@ -140,7 +140,7 @@ class Version0002Date20190226000001 extends SimpleMigrationStep {
|
|||
*/
|
||||
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) {
|
||||
|
||||
foreach (array_merge(self::$editToText, self::$editToChar2000) as $edit) {
|
||||
foreach (array_merge(self::$editToText, self::$editToChar1000) as $edit) {
|
||||
list($tableName, $field) = $edit;
|
||||
|
||||
$qb = $this->connection->getQueryBuilder();
|
||||
|
|
|
@ -61,7 +61,7 @@ class Version0002Date20190226000002 extends SimpleMigrationStep {
|
|||
|
||||
$edits = array_merge(
|
||||
Version0002Date20190226000001::$editToText,
|
||||
Version0002Date20190226000001::$editToChar2000
|
||||
Version0002Date20190226000001::$editToChar1000
|
||||
);
|
||||
foreach ($edits as $edit) {
|
||||
list($tableName, $field) = $edit;
|
||||
|
|
|
@ -88,7 +88,7 @@ class Version0002Date20190226000003 extends SimpleMigrationStep {
|
|||
}
|
||||
|
||||
// -> VARCHAR(4000)
|
||||
foreach (Version0002Date20190226000001::$editToChar2000 as $edit) {
|
||||
foreach (Version0002Date20190226000001::$editToChar1000 as $edit) {
|
||||
list($tableName, $field) = $edit;
|
||||
|
||||
$table = $schema->getTable($tableName);
|
||||
|
@ -96,7 +96,7 @@ class Version0002Date20190226000003 extends SimpleMigrationStep {
|
|||
continue;
|
||||
}
|
||||
|
||||
$table->addColumn($field, Type::STRING, ['notnull' => false, 'length' => 2000]);
|
||||
$table->addColumn($field, Type::STRING, ['notnull' => false, 'length' => 1000]);
|
||||
}
|
||||
|
||||
return $schema;
|
||||
|
@ -112,7 +112,7 @@ class Version0002Date20190226000003 extends SimpleMigrationStep {
|
|||
|
||||
$edits = array_merge(
|
||||
Version0002Date20190226000001::$editToText,
|
||||
Version0002Date20190226000001::$editToChar2000
|
||||
Version0002Date20190226000001::$editToChar1000
|
||||
);
|
||||
foreach ($edits as $edit) {
|
||||
list($table, $field) = $edit;
|
||||
|
|
|
@ -63,7 +63,7 @@ class Version0002Date20190226000004 extends SimpleMigrationStep {
|
|||
|
||||
$edits = array_merge(
|
||||
Version0002Date20190226000001::$editToText,
|
||||
Version0002Date20190226000001::$editToChar2000
|
||||
Version0002Date20190226000001::$editToChar1000
|
||||
);
|
||||
foreach ($edits as $edit) {
|
||||
list($tableName, $field) = $edit;
|
||||
|
|
Ładowanie…
Reference in New Issue