Skip to content

Commit

Permalink
Prevent running migration on sqlite when testing
Browse files Browse the repository at this point in the history
To prevent this on test:

```
RuntimeException: Unsupported database driver [sqlite]. in /home/runner/work/laravel-filament-ecommerce/laravel-filament-ecommerce/database/migrations/2023_06_07_000001_create_pulse_tables.php:36
```
  • Loading branch information
lloricode authored Dec 7, 2023
1 parent 5f63272 commit dc2c631
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions database/migrations/2023_06_07_000001_create_pulse_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public function up(): void
{
$connection = DB::connection($this->getConnection());

if ('sqlite' === $connection->getDriverName()) {
return;
}

Schema::create('pulse_values', function (Blueprint $table) use ($connection) {
$table->id();
$table->unsignedInteger('timestamp');
Expand Down

0 comments on commit dc2c631

Please sign in to comment.