From ff2d497038cd589f284eeade8731bb82f2f90dbb Mon Sep 17 00:00:00 2001 From: dartcafe Date: Fri, 3 Oct 2025 17:31:54 +0200 Subject: [PATCH 1/2] changelog Signed-off-by: dartcafe --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 096aba7d72..65bdf7b56c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ # Changelog All notable changes to this project will be documented in this file. -## [8.5.0] - tbd +## [8.5.0] - 2025-10-03 ### Fixed - Archived polls could not get entered anymore - Public users were not displayed correctly right after registration From 90fd7ebc12f7ff32a3ab10c392c7d3d77884b03b Mon Sep 17 00:00:00 2001 From: dartcafe Date: Fri, 3 Oct 2025 17:33:47 +0200 Subject: [PATCH 2/2] migration V4- > V5 Signed-off-by: dartcafe --- lib/Command/Db/CleanMigrations.php | 2 +- lib/Command/Db/CreateIndices.php | 2 +- lib/Command/Db/FixDB.php | 2 +- lib/Command/Db/Purge.php | 2 +- lib/Command/Db/Rebuild.php | 4 ++-- lib/Command/Db/RemoveFKConstraints.php | 2 +- lib/Command/Db/RemoveOptionalIndices.php | 2 +- lib/Command/Db/RemoveUniqueIndices.php | 2 +- lib/Command/Db/ResetWatch.php | 6 +++--- lib/Cron/JanitorCron.php | 2 +- lib/Db/{V4 => V5}/DbManager.php | 2 +- lib/Db/{V4 => V5}/IndexManager.php | 4 ++-- lib/Db/{V4 => V5}/TableManager.php | 4 ++-- lib/Listener/AddMissingIndicesListener.php | 2 +- lib/Migration/FixVotes.php | 2 +- lib/Migration/RepairSteps/CleanTables.php | 2 +- lib/Migration/RepairSteps/CreateIndices.php | 2 +- lib/Migration/RepairSteps/CreateTables.php | 2 +- lib/Migration/RepairSteps/DropOrphanedColumns.php | 2 +- lib/Migration/RepairSteps/DropOrphanedTables.php | 2 +- lib/Migration/RepairSteps/FixNullish.php | 2 +- lib/Migration/RepairSteps/Install.php | 2 +- lib/Migration/RepairSteps/MigratePublicToOpen.php | 2 +- lib/Migration/RepairSteps/RemoveIndices.php | 2 +- lib/Migration/RepairSteps/RemoveObsoleteMigrations.php | 2 +- lib/Migration/RepairSteps/SetLastInteraction.php | 2 +- lib/Migration/RepairSteps/UpdateHashes.php | 2 +- lib/Migration/RepairSteps/UpdateInteraction.php | 2 +- lib/Migration/{V4 => V5}/TableSchema.php | 2 +- lib/Migration/Version080301Date20250822153002.php | 4 ++-- lib/Migration/Version080307Date20250826231102.php | 4 ++-- 31 files changed, 38 insertions(+), 38 deletions(-) rename lib/Db/{V4 => V5}/DbManager.php (99%) rename lib/Db/{V4 => V5}/IndexManager.php (99%) rename lib/Db/{V4 => V5}/TableManager.php (99%) rename lib/Migration/{V4 => V5}/TableSchema.php (99%) diff --git a/lib/Command/Db/CleanMigrations.php b/lib/Command/Db/CleanMigrations.php index 0c7d5aea86..c5fefcea08 100644 --- a/lib/Command/Db/CleanMigrations.php +++ b/lib/Command/Db/CleanMigrations.php @@ -10,7 +10,7 @@ use Doctrine\DBAL\Schema\Schema; use OCA\Polls\Command\Command; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/CreateIndices.php b/lib/Command/Db/CreateIndices.php index e4272dcc55..56d267f358 100644 --- a/lib/Command/Db/CreateIndices.php +++ b/lib/Command/Db/CreateIndices.php @@ -10,7 +10,7 @@ use Doctrine\DBAL\Schema\Schema; use OCA\Polls\Command\Command; -use OCA\Polls\Db\V4\IndexManager; +use OCA\Polls\Db\V5\IndexManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/FixDB.php b/lib/Command/Db/FixDB.php index 2c4537cf4e..baf7c169a7 100644 --- a/lib/Command/Db/FixDB.php +++ b/lib/Command/Db/FixDB.php @@ -10,7 +10,7 @@ use Doctrine\DBAL\Schema\Schema; use OCA\Polls\Command\Command; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/Purge.php b/lib/Command/Db/Purge.php index af747659f5..9828b8a04f 100644 --- a/lib/Command/Db/Purge.php +++ b/lib/Command/Db/Purge.php @@ -9,7 +9,7 @@ namespace OCA\Polls\Command\Db; use OCA\Polls\Command\Command; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/Rebuild.php b/lib/Command/Db/Rebuild.php index 15e289e742..18df1dfc6c 100644 --- a/lib/Command/Db/Rebuild.php +++ b/lib/Command/Db/Rebuild.php @@ -9,8 +9,8 @@ namespace OCA\Polls\Command\Db; use Doctrine\DBAL\Schema\Schema; -use OCA\Polls\Db\V4\TableManager; -use OCA\Polls\Db\V4\IndexManager; +use OCA\Polls\Db\V5\TableManager; +use OCA\Polls\Db\V5\IndexManager; use OCA\Polls\Command\Command; use OCP\IDBConnection; diff --git a/lib/Command/Db/RemoveFKConstraints.php b/lib/Command/Db/RemoveFKConstraints.php index 52bdbf97e4..cdd52a56ea 100644 --- a/lib/Command/Db/RemoveFKConstraints.php +++ b/lib/Command/Db/RemoveFKConstraints.php @@ -10,7 +10,7 @@ use Doctrine\DBAL\Schema\Schema; use OCA\Polls\Command\Command; -use OCA\Polls\Db\V4\IndexManager; +use OCA\Polls\Db\V5\IndexManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/RemoveOptionalIndices.php b/lib/Command/Db/RemoveOptionalIndices.php index 61f0e23ee5..00b7b74c1b 100644 --- a/lib/Command/Db/RemoveOptionalIndices.php +++ b/lib/Command/Db/RemoveOptionalIndices.php @@ -10,7 +10,7 @@ use Doctrine\DBAL\Schema\Schema; use OCA\Polls\Command\Command; -use OCA\Polls\Db\V4\IndexManager; +use OCA\Polls\Db\V5\IndexManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/RemoveUniqueIndices.php b/lib/Command/Db/RemoveUniqueIndices.php index 8efc8e2667..67317713de 100644 --- a/lib/Command/Db/RemoveUniqueIndices.php +++ b/lib/Command/Db/RemoveUniqueIndices.php @@ -10,7 +10,7 @@ use Doctrine\DBAL\Schema\Schema; use OCA\Polls\Command\Command; -use OCA\Polls\Db\V4\IndexManager; +use OCA\Polls\Db\V5\IndexManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/ResetWatch.php b/lib/Command/Db/ResetWatch.php index 407a21a4fb..b216e19aaa 100644 --- a/lib/Command/Db/ResetWatch.php +++ b/lib/Command/Db/ResetWatch.php @@ -10,10 +10,10 @@ use Doctrine\DBAL\Schema\Schema; use OCA\Polls\Command\Command; -use OCA\Polls\Db\V4\IndexManager; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\IndexManager; +use OCA\Polls\Db\V5\TableManager; use OCA\Polls\Db\Watch; -use OCA\Polls\Migration\V4\TableSchema; +use OCA\Polls\Migration\V5\TableSchema; use OCP\IDBConnection; /** diff --git a/lib/Cron/JanitorCron.php b/lib/Cron/JanitorCron.php index 587df1e9bd..8c43a91042 100644 --- a/lib/Cron/JanitorCron.php +++ b/lib/Cron/JanitorCron.php @@ -15,7 +15,7 @@ use OCA\Polls\Db\OptionMapper; use OCA\Polls\Db\PollMapper; use OCA\Polls\Db\ShareMapper; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCA\Polls\Db\VoteMapper; use OCA\Polls\Helper\Container; use OCA\Polls\Model\Settings\AppSettings; diff --git a/lib/Db/V4/DbManager.php b/lib/Db/V5/DbManager.php similarity index 99% rename from lib/Db/V4/DbManager.php rename to lib/Db/V5/DbManager.php index de9f587c06..bef8bc3ad2 100644 --- a/lib/Db/V4/DbManager.php +++ b/lib/Db/V5/DbManager.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Polls\Db\V4; +namespace OCA\Polls\Db\V5; use Doctrine\DBAL\Schema\Schema; use Exception; diff --git a/lib/Db/V4/IndexManager.php b/lib/Db/V5/IndexManager.php similarity index 99% rename from lib/Db/V4/IndexManager.php rename to lib/Db/V5/IndexManager.php index f57a55cfc8..1e5be67f71 100644 --- a/lib/Db/V4/IndexManager.php +++ b/lib/Db/V5/IndexManager.php @@ -6,11 +6,11 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Polls\Db\V4; +namespace OCA\Polls\Db\V5; use Doctrine\DBAL\Schema\Exception\IndexDoesNotExist; use Exception; -use OCA\Polls\Migration\V4\TableSchema; +use OCA\Polls\Migration\V5\TableSchema; use OCP\IConfig; use OCP\IDBConnection; use Psr\Log\LoggerInterface; diff --git a/lib/Db/V4/TableManager.php b/lib/Db/V5/TableManager.php similarity index 99% rename from lib/Db/V4/TableManager.php rename to lib/Db/V5/TableManager.php index 9cbfb639a4..b05972f94b 100644 --- a/lib/Db/V4/TableManager.php +++ b/lib/Db/V5/TableManager.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Polls\Db\V4; +namespace OCA\Polls\Db\V5; use Doctrine\DBAL\Types\Type; use Exception; @@ -20,7 +20,7 @@ use OCA\Polls\Db\Watch; use OCA\Polls\Exceptions\PreconditionException; use OCA\Polls\Helper\Hash; -use OCA\Polls\Migration\V4\TableSchema; +use OCA\Polls\Migration\V5\TableSchema; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\IConfig; use OCP\IDBConnection; diff --git a/lib/Listener/AddMissingIndicesListener.php b/lib/Listener/AddMissingIndicesListener.php index e55d824846..a1a9ad3b84 100644 --- a/lib/Listener/AddMissingIndicesListener.php +++ b/lib/Listener/AddMissingIndicesListener.php @@ -8,7 +8,7 @@ namespace OCA\Polls\Listener; -use OCA\Polls\Migration\V4\TableSchema; +use OCA\Polls\Migration\V5\TableSchema; use OCP\DB\Events\AddMissingIndicesEvent; use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; diff --git a/lib/Migration/FixVotes.php b/lib/Migration/FixVotes.php index 7255e2bb19..65c05f6a69 100644 --- a/lib/Migration/FixVotes.php +++ b/lib/Migration/FixVotes.php @@ -10,7 +10,7 @@ namespace OCA\Polls\Migration; use Doctrine\DBAL\Schema\Schema; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/CleanTables.php b/lib/Migration/RepairSteps/CleanTables.php index abd25d8ea3..5c49bcccdf 100644 --- a/lib/Migration/RepairSteps/CleanTables.php +++ b/lib/Migration/RepairSteps/CleanTables.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Exception; use OCA\Polls\Db\Poll; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/CreateIndices.php b/lib/Migration/RepairSteps/CreateIndices.php index 940da78e22..33a708b8aa 100644 --- a/lib/Migration/RepairSteps/CreateIndices.php +++ b/lib/Migration/RepairSteps/CreateIndices.php @@ -11,7 +11,7 @@ use Doctrine\DBAL\Schema\Schema; use OCA\Polls\Db\Share; -use OCA\Polls\Db\V4\IndexManager; +use OCA\Polls\Db\V5\IndexManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/CreateTables.php b/lib/Migration/RepairSteps/CreateTables.php index 3f7d941ab3..cd01e6512a 100644 --- a/lib/Migration/RepairSteps/CreateTables.php +++ b/lib/Migration/RepairSteps/CreateTables.php @@ -10,7 +10,7 @@ namespace OCA\Polls\Migration\RepairSteps; use Doctrine\DBAL\Schema\Schema; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/DropOrphanedColumns.php b/lib/Migration/RepairSteps/DropOrphanedColumns.php index 835ac9843f..b8722bd8c0 100644 --- a/lib/Migration/RepairSteps/DropOrphanedColumns.php +++ b/lib/Migration/RepairSteps/DropOrphanedColumns.php @@ -10,7 +10,7 @@ namespace OCA\Polls\Migration\RepairSteps; use Doctrine\DBAL\Schema\Schema; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/DropOrphanedTables.php b/lib/Migration/RepairSteps/DropOrphanedTables.php index a21b58b320..f1947a0e58 100644 --- a/lib/Migration/RepairSteps/DropOrphanedTables.php +++ b/lib/Migration/RepairSteps/DropOrphanedTables.php @@ -10,7 +10,7 @@ namespace OCA\Polls\Migration\RepairSteps; use Doctrine\DBAL\Schema\Schema; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/FixNullish.php b/lib/Migration/RepairSteps/FixNullish.php index 48ffa86384..2964051471 100644 --- a/lib/Migration/RepairSteps/FixNullish.php +++ b/lib/Migration/RepairSteps/FixNullish.php @@ -9,7 +9,7 @@ namespace OCA\Polls\Migration\RepairSteps; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/Install.php b/lib/Migration/RepairSteps/Install.php index 1df0ca8149..e4a60b5afe 100644 --- a/lib/Migration/RepairSteps/Install.php +++ b/lib/Migration/RepairSteps/Install.php @@ -10,7 +10,7 @@ namespace OCA\Polls\Migration\RepairSteps; use Doctrine\DBAL\Schema\Schema; -use OCA\Polls\Db\V4\IndexManager; +use OCA\Polls\Db\V5\IndexManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/MigratePublicToOpen.php b/lib/Migration/RepairSteps/MigratePublicToOpen.php index 3fcb72486a..2c1115cc18 100644 --- a/lib/Migration/RepairSteps/MigratePublicToOpen.php +++ b/lib/Migration/RepairSteps/MigratePublicToOpen.php @@ -9,7 +9,7 @@ namespace OCA\Polls\Migration\RepairSteps; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/RemoveIndices.php b/lib/Migration/RepairSteps/RemoveIndices.php index 9fa4de9ea5..381d94d2fd 100644 --- a/lib/Migration/RepairSteps/RemoveIndices.php +++ b/lib/Migration/RepairSteps/RemoveIndices.php @@ -9,7 +9,7 @@ namespace OCA\Polls\Migration\RepairSteps; use Doctrine\DBAL\Schema\Schema; -use OCA\Polls\Db\V4\IndexManager; +use OCA\Polls\Db\V5\IndexManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/RemoveObsoleteMigrations.php b/lib/Migration/RepairSteps/RemoveObsoleteMigrations.php index 61c1ec9ed3..0844f97e85 100644 --- a/lib/Migration/RepairSteps/RemoveObsoleteMigrations.php +++ b/lib/Migration/RepairSteps/RemoveObsoleteMigrations.php @@ -9,7 +9,7 @@ namespace OCA\Polls\Migration\RepairSteps; use Doctrine\DBAL\Schema\Schema; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/SetLastInteraction.php b/lib/Migration/RepairSteps/SetLastInteraction.php index 0ef6283431..29a7b3d8cf 100644 --- a/lib/Migration/RepairSteps/SetLastInteraction.php +++ b/lib/Migration/RepairSteps/SetLastInteraction.php @@ -9,7 +9,7 @@ namespace OCA\Polls\Migration\RepairSteps; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCA\Polls\Db\WatchMapper; use OCP\IDBConnection; use OCP\Migration\IOutput; diff --git a/lib/Migration/RepairSteps/UpdateHashes.php b/lib/Migration/RepairSteps/UpdateHashes.php index 6178276a35..74beaefe43 100644 --- a/lib/Migration/RepairSteps/UpdateHashes.php +++ b/lib/Migration/RepairSteps/UpdateHashes.php @@ -9,7 +9,7 @@ namespace OCA\Polls\Migration\RepairSteps; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/UpdateInteraction.php b/lib/Migration/RepairSteps/UpdateInteraction.php index 0849a74269..7df0ef9591 100644 --- a/lib/Migration/RepairSteps/UpdateInteraction.php +++ b/lib/Migration/RepairSteps/UpdateInteraction.php @@ -9,7 +9,7 @@ namespace OCA\Polls\Migration\RepairSteps; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\TableManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/V4/TableSchema.php b/lib/Migration/V5/TableSchema.php similarity index 99% rename from lib/Migration/V4/TableSchema.php rename to lib/Migration/V5/TableSchema.php index b7f07ca345..fefea712dc 100644 --- a/lib/Migration/V4/TableSchema.php +++ b/lib/Migration/V5/TableSchema.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Polls\Migration\V4; +namespace OCA\Polls\Migration\V5; use OCA\Polls\Db\Comment; use OCA\Polls\Db\Log; diff --git a/lib/Migration/Version080301Date20250822153002.php b/lib/Migration/Version080301Date20250822153002.php index 96cdbb5cf9..9d75d1203d 100644 --- a/lib/Migration/Version080301Date20250822153002.php +++ b/lib/Migration/Version080301Date20250822153002.php @@ -8,8 +8,8 @@ namespace OCA\Polls\Migration; -use OCA\Polls\Db\V4\IndexManager; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\IndexManager; +use OCA\Polls\Db\V5\TableManager; use OCP\DB\ISchemaWrapper; use OCP\IDBConnection; use OCP\Migration\IOutput; diff --git a/lib/Migration/Version080307Date20250826231102.php b/lib/Migration/Version080307Date20250826231102.php index 9abfb24ab0..672fde07b2 100644 --- a/lib/Migration/Version080307Date20250826231102.php +++ b/lib/Migration/Version080307Date20250826231102.php @@ -9,8 +9,8 @@ namespace OCA\Polls\Migration; use OCA\Polls\Db\Share; -use OCA\Polls\Db\V4\IndexManager; -use OCA\Polls\Db\V4\TableManager; +use OCA\Polls\Db\V5\IndexManager; +use OCA\Polls\Db\V5\TableManager; use OCP\DB\ISchemaWrapper; use OCP\IDBConnection; use OCP\Migration\IOutput;