diff options
author | Robin Appelman <robin@icewind.nl> | 2019-09-27 14:43:11 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2019-09-27 14:43:11 +0300 |
commit | 40052bf6c2542ac193691a803e7d6b331b9921af (patch) | |
tree | e34780d4172d01c1a2cc8808ad1a6a770a14606f | |
parent | ce5ec6e6efb50e6ec403301605f1f5885fb7499e (diff) |
resize mount_point column to 4000 characters
-rw-r--r-- | lib/Migration/Version401002Date20190927114230.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/Migration/Version401002Date20190927114230.php b/lib/Migration/Version401002Date20190927114230.php new file mode 100644 index 00000000..544ae4f8 --- /dev/null +++ b/lib/Migration/Version401002Date20190927114230.php @@ -0,0 +1,31 @@ +<?php + +declare(strict_types=1); + +namespace OCA\GroupFolders\Migration; + +use Closure; +use OCP\DB\ISchemaWrapper; +use OCP\Migration\SimpleMigrationStep; +use OCP\Migration\IOutput; + +class Version401002Date20190927114230 extends SimpleMigrationStep { + /** + * @param IOutput $output + * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param array $options + * @return null|ISchemaWrapper + */ + public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) { + /** @var ISchemaWrapper $schema */ + $schema = $schemaClosure(); + + $table = $schema->getTable('group_folders'); + $table->changeColumn('mount_point', [ + 'notnull' => true, + 'length' => 4000 + ]); + + return $schema; + } +} |