From bdcd60e35fd21baf54f20a455ac476ae5877c8d7 Mon Sep 17 00:00:00 2001 From: kyteinsky Date: Fri, 28 Aug 2026 02:22:31 +0530 Subject: [PATCH 1/2] fix(migration): skip adding index if already present Signed-off-by: kyteinsky Assisted-by: Copilot:claude-opus-4-6 --- lib/Migration/Version005003002Date20260320093628.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Migration/Version005003002Date20260320093628.php b/lib/Migration/Version005003002Date20260320093628.php index 11bd1a7..5853164 100644 --- a/lib/Migration/Version005003002Date20260320093628.php +++ b/lib/Migration/Version005003002Date20260320093628.php @@ -88,8 +88,10 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt if ($schema->hasTable('context_chat_content_queue')) { $table = $schema->getTable('context_chat_content_queue'); - $table->addUniqueIndex(['app_id', 'provider_id', 'item_id'], 'ccc_q_provider'); - $schemaChanged = true; + if (!$table->hasIndex('ccc_q_provider')) { + $table->addUniqueIndex(['app_id', 'provider_id', 'item_id'], 'ccc_q_provider'); + $schemaChanged = true; + } } return $schemaChanged ? $schema : null; From 11e557377d82e443639b28cf51cf47ec3bbefb49 Mon Sep 17 00:00:00 2001 From: kyteinsky Date: Tue, 1 Sep 2026 09:05:35 +0530 Subject: [PATCH 2/2] fix: use php 8.3 in the migration gh workflow Signed-off-by: kyteinsky --- .github/workflows/migration-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/migration-test.yml b/.github/workflows/migration-test.yml index 553dc03..62dbcb3 100644 --- a/.github/workflows/migration-test.yml +++ b/.github/workflows/migration-test.yml @@ -133,10 +133,10 @@ jobs: ref: ${{ github.base_ref == 'main' && 'master' || github.base_ref }} persist-credentials: false - - name: Set up php 8.2 + - name: Set up php 8.3 uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1 with: - php-version: '8.2' + php-version: '8.3' extensions: ${{ env.PHP_EXTENSIONS }} coverage: none ini-file: development