pridany Maintenance pre modul TPsoft\DBmodel,
pridane poznamky, pridana konfiguracia pre DEV a PROD,
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user