Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

### Changed
- Update bundled DataTables to v3.0.3 and remove the jQuery dependency.
- Store report option data as longtext instead of varchar(1000).

### Fixed
- Preserve spreadsheet dates with month and minute format tokens correctly #589.
Expand Down
9 changes: 3 additions & 6 deletions lib/Migration/Version3007Date20211003180000.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,14 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
'notnull' => false,
'length' => 64,
]);
$table->addColumn('chartoptions', 'string', [
$table->addColumn('chartoptions', 'text', [
'notnull' => false,
'length' => 1000,
]);
$table->addColumn('dataoptions', 'string', [
$table->addColumn('dataoptions', 'text', [
'notnull' => false,
'length' => 1000,
]);
$table->addColumn('filteroptions', 'string', [
$table->addColumn('filteroptions', 'text', [
'notnull' => false,
'length' => 1000,
]);
$table->addColumn('refresh', 'integer', [
'notnull' => false,
Expand Down
5 changes: 2 additions & 3 deletions lib/Migration/Version4010Date20230815200000.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt

$table = $schema->getTable('analytics_report');
if (!$table->hasColumn('tableoptions')) {
$table->addColumn('tableoptions', 'string', [
$table->addColumn('tableoptions', 'text', [
'notnull' => false,
'length' => 1000,
]);
}
return $schema;
}
}
}
33 changes: 33 additions & 0 deletions lib/Migration/Version7000Date20260903100000.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/**
* Analytics
*
* SPDX-FileCopyrightText: 2026 Marcel Scherello
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

declare(strict_types=1);

namespace OCA\Analytics\Migration;

use Closure;
use OCP\DB\ISchemaWrapper;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;

class Version7000Date20260903100000 extends SimpleMigrationStep {
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();

$table = $schema->getTable('analytics_report');
foreach (['chartoptions', 'dataoptions', 'filteroptions', 'tableoptions'] as $column) {
$table->changeColumn($column, [
'type' => 'text',
'notnull' => false,
]);
}

return $schema;
}
}
Loading