Server IP : 184.154.167.98 / Your IP : 18.190.239.38 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/www/sesiones/apps/privacy/lib/Migration/ |
Upload File : |
<?php declare(strict_types=1); namespace OCA\Privacy\Migration; use Closure; use OCP\DB\ISchemaWrapper; use OCP\Migration\SimpleMigrationStep; use OCP\Migration\IOutput; /** * Auto-generated migration step: Please modify to your needs! */ class Version100Date20190217131943 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(); /* * Schema generated from database.xml but required changes for * https://github.com/nextcloud/mail/issues/784 already applied. */ if (!$schema->hasTable('privacy_admins')) { $table = $schema->createTable('privacy_admins'); $table->addColumn('id', 'integer', [ 'autoincrement' => true, 'notnull' => true, 'length' => 4, ]); $table->addColumn('displayname', 'string', [ 'notnull' => true, 'length' => 64, 'default' => '', ]); $table->setPrimaryKey(['id']); } return $schema; } }