hasTable('carnet_metadata')) { $table = $schema->createTable('carnet_metadata'); $table->addColumn('path', 'string', [ 'notnull' => true, 'length' => 191, ]); $table->addColumn('metadata', 'string', [ 'notnull' => false, 'length' => 10000000, ]); $table->addColumn('last_modification_file', 'integer', [ 'notnull' => false, ]); $table->addColumn('low_case_text', 'string', [ 'notnull' => false, 'length' => 10000000, ]); $table->addUniqueIndex(['path'], 'indexpath'); } return $schema; } /** * @param IOutput $output * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options */ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { } }