From d890f2f3efe9de00ce2e383857be743e4cccedf4 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Mon, 27 Apr 2026 10:02:39 +0200 Subject: [PATCH] update schema version to V9 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/{V8 => V9}/DbManager.php | 2 +- lib/Db/{V8 => V9}/IndexManager.php | 4 ++-- lib/Db/{V8 => V9}/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/CreateUniqueIndices.php | 2 +- lib/Migration/RepairSteps/DropOrphanedColumns.php | 2 +- lib/Migration/RepairSteps/DropOrphanedIndices.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/{V8 => V9}/TableSchema.php | 2 +- lib/Migration/Version080301Date20250822153002.php | 4 ++-- lib/Migration/Version080307Date20250826231102.php | 4 ++-- lib/Migration/Version090000Date20260302212000.php | 2 +- 34 files changed, 41 insertions(+), 41 deletions(-) rename lib/Db/{V8 => V9}/DbManager.php (99%) rename lib/Db/{V8 => V9}/IndexManager.php (99%) rename lib/Db/{V8 => V9}/TableManager.php (99%) rename lib/Migration/{V8 => V9}/TableSchema.php (99%) diff --git a/lib/Command/Db/CleanMigrations.php b/lib/Command/Db/CleanMigrations.php index 393105f7e..f69244058 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\V8\TableManager; +use OCA\Polls\Db\V9\TableManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/CreateIndices.php b/lib/Command/Db/CreateIndices.php index 68d857605..22c438dc8 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\V8\IndexManager; +use OCA\Polls\Db\V9\IndexManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/FixDB.php b/lib/Command/Db/FixDB.php index fcd0c287f..c172773ef 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\V8\TableManager; +use OCA\Polls\Db\V9\TableManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/Purge.php b/lib/Command/Db/Purge.php index 0f251bfec..39632f6e3 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\V8\TableManager; +use OCA\Polls\Db\V9\TableManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/Rebuild.php b/lib/Command/Db/Rebuild.php index f0dd46cf3..2d8aa0ce4 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\V8\TableManager; -use OCA\Polls\Db\V8\IndexManager; +use OCA\Polls\Db\V9\TableManager; +use OCA\Polls\Db\V9\IndexManager; use OCA\Polls\Command\Command; use OCP\IDBConnection; diff --git a/lib/Command/Db/RemoveFKConstraints.php b/lib/Command/Db/RemoveFKConstraints.php index 8a3f305f3..d86e05198 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\V8\IndexManager; +use OCA\Polls\Db\V9\IndexManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/RemoveOptionalIndices.php b/lib/Command/Db/RemoveOptionalIndices.php index 26f578d65..442423f45 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\V8\IndexManager; +use OCA\Polls\Db\V9\IndexManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/RemoveUniqueIndices.php b/lib/Command/Db/RemoveUniqueIndices.php index dd9911b01..e2f12e0f9 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\V8\IndexManager; +use OCA\Polls\Db\V9\IndexManager; use OCP\IDBConnection; /** diff --git a/lib/Command/Db/ResetWatch.php b/lib/Command/Db/ResetWatch.php index 667093d9e..46672855f 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\V8\IndexManager; -use OCA\Polls\Db\V8\TableManager; +use OCA\Polls\Db\V9\IndexManager; +use OCA\Polls\Db\V9\TableManager; use OCA\Polls\Db\Watch; -use OCA\Polls\Migration\V8\TableSchema; +use OCA\Polls\Migration\V9\TableSchema; use OCP\IDBConnection; /** diff --git a/lib/Cron/JanitorCron.php b/lib/Cron/JanitorCron.php index 18fd2db4b..e42fcb8f7 100644 --- a/lib/Cron/JanitorCron.php +++ b/lib/Cron/JanitorCron.php @@ -16,7 +16,7 @@ use OCA\Polls\Db\OptionMapper; use OCA\Polls\Db\PollMapper; use OCA\Polls\Db\ShareMapper; -use OCA\Polls\Db\V8\TableManager; +use OCA\Polls\Db\V9\TableManager; use OCA\Polls\Db\VoteMapper; use OCA\Polls\Model\Settings\AppSettings; use OCP\AppFramework\Utility\ITimeFactory; diff --git a/lib/Db/V8/DbManager.php b/lib/Db/V9/DbManager.php similarity index 99% rename from lib/Db/V8/DbManager.php rename to lib/Db/V9/DbManager.php index 6aa8a3dc5..7ceb172e4 100644 --- a/lib/Db/V8/DbManager.php +++ b/lib/Db/V9/DbManager.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Polls\Db\V8; +namespace OCA\Polls\Db\V9; use Doctrine\DBAL\Schema\Schema; use Exception; diff --git a/lib/Db/V8/IndexManager.php b/lib/Db/V9/IndexManager.php similarity index 99% rename from lib/Db/V8/IndexManager.php rename to lib/Db/V9/IndexManager.php index df72f06ad..5302b70ff 100644 --- a/lib/Db/V8/IndexManager.php +++ b/lib/Db/V9/IndexManager.php @@ -6,11 +6,11 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Polls\Db\V8; +namespace OCA\Polls\Db\V9; use Doctrine\DBAL\Schema\Exception\IndexDoesNotExist; use Exception; -use OCA\Polls\Migration\V8\TableSchema; +use OCA\Polls\Migration\V9\TableSchema; use OCP\IConfig; use OCP\IDBConnection; use Psr\Log\LoggerInterface; diff --git a/lib/Db/V8/TableManager.php b/lib/Db/V9/TableManager.php similarity index 99% rename from lib/Db/V8/TableManager.php rename to lib/Db/V9/TableManager.php index 3bb227402..72add7cbe 100644 --- a/lib/Db/V8/TableManager.php +++ b/lib/Db/V9/TableManager.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Polls\Db\V8; +namespace OCA\Polls\Db\V9; 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\V8\TableSchema; +use OCA\Polls\Migration\V9\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 f00e9d0d5..89dc72e1a 100644 --- a/lib/Listener/AddMissingIndicesListener.php +++ b/lib/Listener/AddMissingIndicesListener.php @@ -8,7 +8,7 @@ namespace OCA\Polls\Listener; -use OCA\Polls\Migration\V8\TableSchema; +use OCA\Polls\Migration\V9\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 a42f436c7..6d7287903 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\V8\TableManager; +use OCA\Polls\Db\V9\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 e3aad22df..e13057491 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\V8\TableManager; +use OCA\Polls\Db\V9\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 60e25c34f..49822a00e 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\V8\IndexManager; +use OCA\Polls\Db\V9\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 87726efef..caa091976 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\V8\TableManager; +use OCA\Polls\Db\V9\TableManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/CreateUniqueIndices.php b/lib/Migration/RepairSteps/CreateUniqueIndices.php index 050dde2b3..af66131e2 100644 --- a/lib/Migration/RepairSteps/CreateUniqueIndices.php +++ b/lib/Migration/RepairSteps/CreateUniqueIndices.php @@ -10,7 +10,7 @@ namespace OCA\Polls\Migration\RepairSteps; use Doctrine\DBAL\Schema\Schema; -use OCA\Polls\Db\V8\IndexManager; +use OCA\Polls\Db\V9\IndexManager; 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 d592beff4..879e03167 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\V8\TableManager; +use OCA\Polls\Db\V9\TableManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/RepairSteps/DropOrphanedIndices.php b/lib/Migration/RepairSteps/DropOrphanedIndices.php index 4834cd4bf..1c7cb8b78 100644 --- a/lib/Migration/RepairSteps/DropOrphanedIndices.php +++ b/lib/Migration/RepairSteps/DropOrphanedIndices.php @@ -10,7 +10,7 @@ namespace OCA\Polls\Migration\RepairSteps; use Doctrine\DBAL\Schema\Schema; -use OCA\Polls\Db\V8\IndexManager; +use OCA\Polls\Db\V9\IndexManager; 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 94028b44c..8a4c2beb0 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\V8\TableManager; +use OCA\Polls\Db\V9\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 29e742968..37b38b2b7 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\V8\TableManager; +use OCA\Polls\Db\V9\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 0b895f9e1..a65827e9b 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\V8\IndexManager; +use OCA\Polls\Db\V9\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 82958ad2d..d16892ec5 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\V8\TableManager; +use OCA\Polls\Db\V9\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 fc62315e4..fb870de96 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\V8\IndexManager; +use OCA\Polls\Db\V9\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 05a9614cc..b3863b0da 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\V8\TableManager; +use OCA\Polls\Db\V9\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 0142c2d32..f1a5cbf06 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\V8\TableManager; +use OCA\Polls\Db\V9\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 52dc18d6e..823f6f19e 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\V8\TableManager; +use OCA\Polls\Db\V9\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 9e0d32407..f71068f0e 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\V8\TableManager; +use OCA\Polls\Db\V9\TableManager; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/V8/TableSchema.php b/lib/Migration/V9/TableSchema.php similarity index 99% rename from lib/Migration/V8/TableSchema.php rename to lib/Migration/V9/TableSchema.php index 70151b205..53c805599 100644 --- a/lib/Migration/V8/TableSchema.php +++ b/lib/Migration/V9/TableSchema.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Polls\Migration\V8; +namespace OCA\Polls\Migration\V9; use OCA\Polls\Db\Comment; use OCA\Polls\Db\Log; diff --git a/lib/Migration/Version080301Date20250822153002.php b/lib/Migration/Version080301Date20250822153002.php index 53419f622..3851c19f9 100644 --- a/lib/Migration/Version080301Date20250822153002.php +++ b/lib/Migration/Version080301Date20250822153002.php @@ -8,8 +8,8 @@ namespace OCA\Polls\Migration; -use OCA\Polls\Db\V8\IndexManager; -use OCA\Polls\Db\V8\TableManager; +use OCA\Polls\Db\V9\IndexManager; +use OCA\Polls\Db\V9\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 bfe0d7b2d..f716ef77c 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\V8\IndexManager; -use OCA\Polls\Db\V8\TableManager; +use OCA\Polls\Db\V9\IndexManager; +use OCA\Polls\Db\V9\TableManager; use OCP\DB\ISchemaWrapper; use OCP\IDBConnection; use OCP\Migration\IOutput; diff --git a/lib/Migration/Version090000Date20260302212000.php b/lib/Migration/Version090000Date20260302212000.php index 359bdced0..f3c1801de 100644 --- a/lib/Migration/Version090000Date20260302212000.php +++ b/lib/Migration/Version090000Date20260302212000.php @@ -8,7 +8,7 @@ namespace OCA\Polls\Migration; -use OCA\Polls\Db\V8\TableManager; +use OCA\Polls\Db\V9\TableManager; use OCP\DB\ISchemaWrapper; use OCP\IDBConnection; use OCP\Migration\IOutput;