Rello /
analytics
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Analytics |
||
| 4 | * |
||
| 5 | * SPDX-FileCopyrightText: 2019-2022 Marcel Scherello |
||
| 6 | * SPDX-License-Identifier: AGPL-3.0-or-later |
||
| 7 | */ |
||
| 8 | |||
| 9 | declare(strict_types=1); |
||
| 10 | |||
| 11 | namespace OCA\Analytics\Migration; |
||
| 12 | |||
| 13 | use Closure; |
||
| 14 | use OCP\DB\ISchemaWrapper; |
||
|
0 ignored issues
–
show
|
|||
| 15 | use OCP\Migration\IOutput; |
||
|
0 ignored issues
–
show
The type
OCP\Migration\IOutput was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 16 | use OCP\Migration\SimpleMigrationStep; |
||
|
0 ignored issues
–
show
The type
OCP\Migration\SimpleMigrationStep was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 17 | |||
| 18 | /** |
||
| 19 | * Auto-generated migration step: Please modify to your needs! |
||
| 20 | * sudo -u www-data php /var/www/nextcloud/occ migrations:execute analytics 4010Date20230815200000 |
||
| 21 | */ |
||
| 22 | class Version4010Date20230815200000 extends SimpleMigrationStep |
||
| 23 | { |
||
| 24 | public function __construct() |
||
| 25 | { |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param IOutput $output |
||
| 30 | * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
||
| 31 | * @param array $options |
||
| 32 | * @return null|ISchemaWrapper |
||
| 33 | */ |
||
| 34 | public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) |
||
| 35 | { |
||
| 36 | /** @var ISchemaWrapper $schema */ |
||
| 37 | $schema = $schemaClosure(); |
||
| 38 | |||
| 39 | $table = $schema->getTable('analytics_report'); |
||
| 40 | if (!$table->hasColumn('tableoptions')) { |
||
| 41 | $table->addColumn('tableoptions', 'string', [ |
||
| 42 | 'notnull' => false, |
||
| 43 | 'length' => 1000, |
||
| 44 | ]); |
||
| 45 | } |
||
| 46 | return $schema; |
||
| 47 | } |
||
| 48 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths