Skip to content

Commit 5e874b1

Browse files
committed
rename migration file / update handleColumnPersistDbException return type
Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
1 parent 0c8e5b5 commit 5e874b1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/Migration/Version1000Date20260327000000.php renamed to lib/Migration/Version2200Date20260707000000.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use OCP\Migration\SimpleMigrationStep;
1919
use Override;
2020

21-
class Version1000Date20260327000000 extends SimpleMigrationStep {
21+
class Version2200Date20260707000000 extends SimpleMigrationStep {
2222
private IDBConnection $connection;
2323

2424
public function __construct(IDBConnection $connection) {
@@ -79,6 +79,6 @@ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array
7979
$result->closeCursor();
8080
}
8181

82-
$output->info('Version1000Date20260327000000: backfilled technical_name for ' . $updatedCount . ' columns.');
82+
$output->info('Version2200Date20260707000000: backfilled technical_name for ' . $updatedCount . ' columns.');
8383
}
8484
}

lib/Service/ColumnService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ private function buildDefaultTechnicalName(int $columnId): string {
746746
* @throws BadRequestError
747747
* @throws InternalError
748748
*/
749-
private function handleColumnPersistDbException(\OCP\DB\Exception $e, string $context): void {
749+
private function handleColumnPersistDbException(\OCP\DB\Exception $e, string $context): never {
750750
if ($e->getReason() === \OCP\DB\Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
751751
throw new BadRequestError('Technical name must be unique in the table.');
752752
}

0 commit comments

Comments
 (0)