Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Skip nullable oni Oracle
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Dec 7, 2020
commit ecb43cc8083eb2c2257a256f9cbb7af6d93c8965
14 changes: 14 additions & 0 deletions lib/Migration/Version2011Date20201207091915.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,32 @@
namespace OCA\Activity\Migration;

use Closure;
use Doctrine\DBAL\Platforms\OraclePlatform;
use OCP\DB\ISchemaWrapper;
use OCP\IDBConnection;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;

class Version2011Date20201207091915 extends SimpleMigrationStep {
/** @var IDBConnection */
protected $connection;

public function __construct(IDBConnection $connection) {
$this->connection = $connection;
}

/**
* @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): ?ISchemaWrapper {
if ($this->connection->getDatabasePlatform() instanceof OraclePlatform) {
// Temporarily disabled until we figured a way to allow CLOB to be turned into nullable
return null;
}

/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();

Expand Down