Skip to content

Commit ec51174

Browse files
authored
Merge pull request #4617 from nextcloud/rel/finalize-version
Preparation release v9.0.0
2 parents d21d8e3 + 019b261 commit ec51174

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
-->
55
# Changelog
66
All notable changes to this project will be documented in this file.
7-
87
## [Unreleased]
8+
- none so far
9+
10+
## [9.0.0] - 2026-04-16
911
### Fixed
1012
- Fixed broken share links for public polls
1113
- Fixed access issues for public users on shared polls

lib/Migration/Version090000Date20260302211900.php renamed to lib/Migration/Version090000Date20260302212000.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
namespace OCA\Polls\Migration;
1010

11+
use OCA\Polls\Db\V6\IndexManager;
1112
use OCA\Polls\Db\V6\TableManager;
1213
use OCP\DB\ISchemaWrapper;
1314
use OCP\IDBConnection;
@@ -22,12 +23,13 @@
2223
*
2324
* @psalm-suppress UnusedClass
2425
*/
25-
class Version090000Date20260302211900 extends SimpleMigrationStep {
26+
class Version090000Date20260302212000 extends SimpleMigrationStep {
2627
private ISchemaWrapper $schema;
2728
private ?IOutput $output = null;
2829

2930
public function __construct(
3031
private TableManager $tableManager,
32+
private IndexManager $indexManager,
3133
private IDBConnection $connection,
3234
) {
3335
}
@@ -92,7 +94,13 @@ public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array
9294
$this->output = $output;
9395
$this->logInfo('Post migration steps- no operation needed');
9496

95-
// Clean up tables before creating indices and foreign keys
97+
$this->indexManager->createSchema();
98+
// Create unique indices for all tables and remove all duplicates which have to be unique
99+
$message = $this->indexManager->createUniqueIndices();
100+
$this->logInfo($message, 'postMigration: ');
101+
102+
// skip creating optional indices and leave it to 'occ db:add-missing-indices'
103+
$this->indexManager->migrateToSchema();
96104

97105
}
98106

0 commit comments

Comments
 (0)