forms/lib/Migration/Version010102Date20200323120846.php
Jonas Rittershofer 03e9ff4a86 Alter Database
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2020-04-03 22:00:04 +02:00

33 lines
747 B
PHP

<?php
declare(strict_types=1);
namespace OCA\Forms\Migration;
use Closure;
use OCP\DB\ISchemaWrapper;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
/**
* Auto-generated migration step: Please modify to your needs!
*/
class Version010102Date20200323120846 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();
if ($schema->hasTable('forms_notif')) {
$schema->dropTable('forms_notif');
}
return $schema;
}
}