%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps/app_api/lib/Migration/ |
Current File : //www/varak.net/nextcloud.varak.net/apps/app_api/lib/Migration/Version2203Date20240325124149.php |
<?php declare(strict_types=1); namespace OCA\AppAPI\Migration; use Closure; use OCP\DB\ISchemaWrapper; use OCP\DB\Types; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; class Version2203Date20240325124149 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('ex_apps'); $table->addColumn('api_scopes', Types::JSON, [ 'notnull' => false, ]); return $schema; } }