]> BookStack Code Mirror - bookstack/commitdiff
Allow to use DB tables prefix
authorfloviolleau <redacted>
Sun, 19 Sep 2021 12:31:18 +0000 (14:31 +0200)
committerGitHub <redacted>
Sun, 19 Sep 2021 12:31:18 +0000 (14:31 +0200)
app/Config/database.php

index 7fb51a13bf0664c3994447d2df4cf20591dccdc8..9394439305a3b6839c886f2383dcbaea5141fe18 100644 (file)
@@ -69,7 +69,7 @@ return [
             'port'           => $mysql_port,
             'charset'        => 'utf8mb4',
             'collation'      => 'utf8mb4_unicode_ci',
-            'prefix'         => '',
+            'prefix'         => env('DB_TABLE_PREFIX', ''),
             'prefix_indexes' => true,
             'strict'         => false,
             'engine'         => null,