pridany Maintenance pre modul TPsoft\DBmodel,

pridane poznamky,
pridana konfiguracia pre DEV a PROD,
This commit is contained in:
2025-10-11 16:49:46 +02:00
parent 995e0e40a5
commit e63be43639
5 changed files with 108 additions and 17 deletions

View File

@ -4,6 +4,7 @@ require __DIR__ . '/../vendor/autoload.php';
use \Exception;
use \TPsoft\DBmodel\DBmodel;
use \TPsoft\BugreportBackend\Maintenance;
global $dbh;
@ -14,20 +15,6 @@ if (Configuration::DB_TYPE == 'mysql') {
} else {
throw new Exception('Unknown database type');
}
/*
$dbh->tables = [
'reports' => [
'name' => 'reports',
'primary_key_name' => 'report_id',
'allow_attributes' => [
'report_id' => 'varchar()',
'report_title' => 'varchar()',
'report_description' => 'varchar()',
'report_status' => 'varchar()',
'report_group' => 'varchar()',
'report_priority' => 'varchar()',
'created_dt' => 'varchar()',
],
],
];
*/
$maintenance = new Maintenance($dbh);
$maintenance->database();