Skip to content

Commit 48f8e2b

Browse files
Update lib/Migration/Version050300Date20260303000000.php
Co-authored-by: Christian Hartmann <chris-hartmann@gmx.de> Signed-off-by: L'Africain <fr.cyrille@tiberiade.be>
1 parent ba06a39 commit 48f8e2b

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

lib/Migration/Version050300Date20260303000000.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
11
<?php
2+
23
declare(strict_types=1);
4+
35
/**
46
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
57
* SPDX-License-Identifier: AGPL-3.0-or-later
68
*/
9+
710
namespace OCA\Forms\Migration;
11+
812
use Closure;
913
use OCP\DB\ISchemaWrapper;
1014
use OCP\DB\Types;
1115
use OCP\Migration\IOutput;
1216
use OCP\Migration\SimpleMigrationStep;
17+
1318
class Version050300Date20260303000000 extends SimpleMigrationStep {
19+
20+
/**
21+
* @param IOutput $output
22+
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
23+
* @param array $options
24+
* @return null|ISchemaWrapper
25+
*/
1426
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
1527
/** @var ISchemaWrapper $schema */
1628
$schema = $schemaClosure();
1729
$table = $schema->getTable('forms_v2_forms');
18-
if (!$table->hasColumn('max_submissions')) {
30+
31+
if (!$table->hasColumn('max_submissions')) {
1932
$table->addColumn('max_submissions', Types::INTEGER, [
2033
'notnull' => false,
2134
'default' => null,

0 commit comments

Comments
 (0)