123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- declare(strict_types=1);
- namespace OC\Core\Migrations;
- use Closure;
- use OCP\DB\ISchemaWrapper;
- use OCP\Migration\IOutput;
- use OCP\Migration\SimpleMigrationStep;
- class Version15000Date20181015062942 extends SimpleMigrationStep {
-
- public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
-
- $schema = $schemaClosure();
- $table = $schema->getTable('share');
- $table->addColumn('hide_download', 'smallint', [
- 'notnull' => false,
- 'length' => 1,
- 'default' => 0,
- ]);
- return $schema;
- }
- }
|