Table prefixes not being added to indexes (#597)
* Enabled prefixes on any created indexes (multi-site install in single db) * Formatting * Check if enum label is looking for a translation * Return value * Fix view namespace across modules
This commit is contained in:
@@ -12,13 +12,14 @@ return [
|
||||
'username' => env('DB_USERNAME', ''),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
//'unix_socket' => env('DB_SOCKET', ''),
|
||||
'prefix' => env('DB_PREFIX', ''),
|
||||
'timezone' => '+00:00',
|
||||
'charset' => 'utf8',
|
||||
'collation' => 'utf8_unicode_ci',
|
||||
'strict' => false,
|
||||
'engine' => null,
|
||||
'options' => [
|
||||
'prefix' => env('DB_PREFIX', ''),
|
||||
'prefix_indexes' => true,
|
||||
'timezone' => '+00:00',
|
||||
'charset' => 'utf8',
|
||||
'collation' => 'utf8_unicode_ci',
|
||||
'strict' => false,
|
||||
'engine' => null,
|
||||
'options' => [
|
||||
PDO::ATTR_EMULATE_PREPARES => env('DB_EMULATE_PREPARES', false),
|
||||
//PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||
],
|
||||
@@ -27,22 +28,25 @@ return [
|
||||
],
|
||||
],
|
||||
'sqlite' => [
|
||||
'driver' => 'sqlite',
|
||||
'database' => storage_path('db.sqlite'),
|
||||
'timezone' => '+00:00',
|
||||
'prefix' => '',
|
||||
'driver' => 'sqlite',
|
||||
'database' => storage_path('db.sqlite'),
|
||||
'timezone' => '+00:00',
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
],
|
||||
'testing' => [
|
||||
'driver' => 'sqlite',
|
||||
'database' => storage_path('testing.sqlite'),
|
||||
'timezone' => '+00:00',
|
||||
'prefix' => '',
|
||||
'driver' => 'sqlite',
|
||||
'database' => storage_path('testing.sqlite'),
|
||||
'timezone' => '+00:00',
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
],
|
||||
'memory' => [
|
||||
'driver' => 'sqlite',
|
||||
'database' => ':memory:',
|
||||
'timezone' => '+00:00',
|
||||
'prefix' => '',
|
||||
'driver' => 'sqlite',
|
||||
'database' => ':memory:',
|
||||
'timezone' => '+00:00',
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
],
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user