Skip to content

Commit 0eea496

Browse files
committed
ci: fix database schema tests on windows
1 parent fd1b0ee commit 0eea496

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
uses: shivammathur/setup-php@v2
4242
with:
4343
php-version: ${{ matrix.php }}
44-
extensions: dom, curl, libxml, mbstring, zip, fileinfo, sqlite, pdo_sqlite
44+
extensions: dom, curl, libxml, mbstring, zip, fileinfo, pdo, sqlite, pdo_sqlite
4545
ini-values: error_reporting=E_ALL
4646
tools: composer:v2.8
4747
coverage: none
@@ -87,7 +87,7 @@ jobs:
8787
uses: shivammathur/setup-php@v2
8888
with:
8989
php-version: ${{ matrix.php }}
90-
extensions: dom, curl, libxml, mbstring, zip, fileinfo, sqlite, pdo_sqlite
90+
extensions: dom, curl, libxml, mbstring, zip, fileinfo, pdo, sqlite, pdo_sqlite
9191
ini-values: error_reporting=E_ALL
9292
tools: composer:v2.8
9393
coverage: none

tests/Feature/Mcp/Tools/DatabaseSchemaTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
}
2323

2424
// Build a throw-away table that we expect in the dump.
25+
Schema::dropIfExists('examples');
2526
Schema::create('examples', function (Blueprint $table) {
2627
$table->id();
2728
$table->string('name');

0 commit comments

Comments
 (0)