davidvandertuijn's avatar

Larvel Pulse: Unsupported database driver [sqlite].

When executing phpunit, the migration 2023_06_07_000001_create_pulse_tables.php is run on the SQLite database, resulting in an Exception: Unsupported database driver [sqlite]. Is it possible to skip the migration? I tried adding PULSE_ENABLED=false to phpunit.xml, but it didn't have any effect.

1 like
3 replies
PovilasKorop's avatar

From what I've read, Pulse supported only MySQL, at least at the time of beta launch.

1 like
martinbean's avatar

@davidvandertuijn The very first thing under the “Installation” heading on the Pulse docs is a massive call out saying it only works with MySQL or Postgres:

Pulse's first-party storage implementation currently requires a MySQL or PostgreSQL database. If you are using a different database engine, you will need a separate MySQL or PostgreSQL database for your Pulse data.

davidvandertuijn's avatar
Level 2

I used the following workaround in the 'database/migrations/2023_06_07_000001_create_pulse_tables.php':

if (app()->runningUnitTests()) {
    return;
}
3 likes

Please or to participate in this conversation.