chore: ruim overbodige bestanden op (.htaccess, .env untracked), verplaats schema.sql en voeg .gitattributes toe
This commit is contained in:
+1
-1
@@ -123,7 +123,7 @@ function ensure_tables_exist(PDO $pdo): void {
|
||||
}
|
||||
|
||||
// Tabellen ontbreken nog: voer schema.sql uit statement voor statement
|
||||
$schemaFile = __DIR__ . '/../schema.sql';
|
||||
$schemaFile = file_exists(__DIR__ . '/schema.sql') ? (__DIR__ . '/schema.sql') : (__DIR__ . '/../schema.sql');
|
||||
if (file_exists($schemaFile)) {
|
||||
$sql = file_get_contents($schemaFile);
|
||||
$statements = array_filter(array_map('trim', explode(';', $sql)));
|
||||
|
||||
Reference in New Issue
Block a user