show the images

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2021-03-08 14:49:04 +01:00
parent d4898552ad
commit abd0deefab
4 changed files with 46 additions and 10 deletions

View File

@@ -9,19 +9,20 @@ use OCP\DB\ISchemaWrapper;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
class Version10400Date20210305 extends SimpleMigrationStep {
class Version010400Date20210305 extends SimpleMigrationStep {
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
// Add cover image database field
$table = $schema->getTable('deck_boards');
if (!$table->hasColumn('coverImages')) {
$table->addColumn('coverImages', 'boolean', [
if (!$table->hasColumn('cover_images')) {
$table->addColumn('cover_images', 'boolean', [
'notnull' => false,
'default' => true,
]);
return $schema;
}
return $schema;
return null;
}
}
}