Version 1.5
This commit is contained in:
20
reset-install.php
Normal file
20
reset-install.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
require __DIR__ . '/app/bootstrap.php';
|
||||
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
|
||||
if (!$pdo) {
|
||||
echo "Keine Datenbankverbindung vorhanden.\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
try {
|
||||
$pdo->exec('DELETE FROM work_logs');
|
||||
$pdo->exec('DELETE FROM users');
|
||||
echo "Installation zurueckgesetzt. users und work_logs wurden geleert.\n";
|
||||
echo "Jetzt install.php aufrufen.\n";
|
||||
} catch (Throwable $e) {
|
||||
echo 'Fehler: ' . $e->getMessage() . "\n";
|
||||
}
|
||||
Reference in New Issue
Block a user