adapt table column length limit to episode actions like DOWNLOAD

This commit is contained in:
thrillfall 2021-08-22 23:19:38 +02:00
parent ebe4757b5e
commit 029c010e2f
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace OCA\GPodderSync\Migration;
use Closure;
use Doctrine\DBAL\Types\Types;
use OCP\DB\ISchemaWrapper;
use OCP\Migration\IOutput;
class Version0003Date20210822231113 extends \OCP\Migration\SimpleMigrationStep {
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
$table = $schema->getTable('gpodder_episode_action');
$table->changeColumn('action', ['length' => 10]);
return $schema;
}
}