-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adapt table column length limit to episode actions like DOWNLOAD
- Loading branch information
1 parent
ebe4757
commit 029c010
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |