Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.
SQLite driver, SqlSqlite::creds() ignores prefix completely when it should treat it as core driver do, adding as suffix to the DB file name (see Drupal\Core\Database\Driver\sqlite\Connection::__construct() ).
To Reproduce
$ ./drush si --yes --db-url=sqlite://drupal.sqlite --db-prefix='db_prefix' minimal
$ ./drush sqlq '.databases'
main: /home/kirill/projects/drush/sut/drupal.sqlite
Describe the bug
SQLite driver, SqlSqlite::creds() ignores prefix completely when it should treat it as core driver do, adding as suffix to the DB file name (see Drupal\Core\Database\Driver\sqlite\Connection::__construct() ).
To Reproduce $ ./drush si --yes --db-url=sqlite://drupal.sqlite --db-prefix='db_prefix' minimal $ ./drush sqlq '.databases' main: /home/kirill/projects/drush/sut/drupal.sqlite
Expected behavior $ ./drush sqlq '.databases' main: /home/kirill/projects/drush/sut/drupal.sqlite db_prefix: /home/kirill/projects/drush/sut/drupal.sqlite-db_prefix
Workaround Export queries ran by core in Drupal\Core\Database\Driver\sqlite\Connection::__construct() to a file and add that to sqlite3
-init
option.System Configuration