Skip to content

Commit

Permalink
FIX: Adjust path for root of project && ADD: New configuration for da…
Browse files Browse the repository at this point in the history
…tabase
  • Loading branch information
gravataLonga committed Dec 21, 2022
1 parent 24c1cd3 commit 0ce9796
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bootstrap/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
/**
* Create a new Kernel Application
*/
$app = new Kernel(new Path(__DIR__ . '/../'));
$app = new Kernel(new Path(__DIR__ . '/..'));

return $app;
18 changes: 17 additions & 1 deletion config/databases.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
declare(strict_types=1);

/** Databases Connections */

use function Gravatalonga\Framework\storage_path;

return [

/** Master Database */
Expand All @@ -19,5 +22,18 @@
'charset' => 'UTF8',
'memory' => true,
'driver' => 'pdo_sqlite'
]
],

/** Sqlite */
// 'sqlite' => [
// 'charset' => 'UTF8',
// 'memory' => false,
// 'driver' => 'pdo_sqlite',
// 'path' => storage_path()->suffix('filesystem')->suffix('database.sqlite')
// ]

/**
* For more information visit:
* https://www.doctrine-project.org/projects/doctrine-dbal/en/current/reference/configuration.html
*/
];

0 comments on commit 0ce9796

Please sign in to comment.