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 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;