remove db prefix

This commit is contained in:
Dennis Eichhorn 2020-03-12 18:02:55 +01:00
parent 2a8cd5ce75
commit b9b6c1bd20
3 changed files with 23 additions and 15 deletions

View File

@ -48,3 +48,20 @@ parameters:
-
message: '#Binary operation "\-" between string and int results in an error#'
path: *Matrix/Matrix.php
SELECT
`a`.`organization_unit_id` as id_3,
`b`.`organization_unit_id` as id_2,
`c`.`organization_unit_id` as id_1
FROM `oms_organization_unit` as a
LEFT JOIN `oms_organization_unit` as b
ON
`a`.`organization_unit_parent` = `b`.`organization_unit_id`
LEFT JOIN `oms_organization_unit` as c
ON
`b`.`organization_unit_parent` = `c`.`organization_unit_id`
WHERE `a`.`organization_unit_id` = 1;

View File

@ -610,7 +610,6 @@ return [
'phpOMS\tests\DataStorage\Database\Query\Grammar\GrammarTest' => ['description' => 'Basic sql query grammar', 'type' => 'framework'],
'phpOMS\tests\DataStorage\Database\Query\Grammar\GrammarTest:testDefault' => ['description' => 'The grammar has the expected default values after initialization', 'type' => 'framework'],
'phpOMS\tests\DataStorage\Database\Query\Grammar\GrammarTest:testPrefixInputOutput' => ['description' => 'The grammar can define a default table prefix and return this value', 'type' => 'framework'],
'phpOMS\tests\DataStorage\Database\Query\Grammar\MysqlGrammarTest' => ['description' => 'Mysql sql query grammar', 'type' => 'framework'],
'phpOMS\tests\DataStorage\Database\Query\Grammar\MysqlGrammarTest:testDefault' => ['description' => 'The grammar has the expected default values after initialization', 'type' => 'framework'],
@ -626,7 +625,6 @@ return [
'phpOMS\tests\DataStorage\Database\Schema\Grammar\GrammarTest' => ['description' => 'Basic sql query grammar', 'type' => 'framework'],
'phpOMS\tests\DataStorage\Database\Schema\Grammar\GrammarTest:testDefault' => ['description' => 'The grammar has the expected default values after initialization', 'type' => 'framework'],
'phpOMS\tests\DataStorage\Database\Schema\Grammar\GrammarTest:testPrefixInputOutput' => ['description' => 'The grammar can define a default table prefix and return this value', 'type' => 'framework'],
'phpOMS\tests\DataStorage\Database\Schema\Grammar\MysqlGrammarTest' => ['description' => 'Mysql sql schema grammar', 'type' => 'framework'],
'phpOMS\tests\DataStorage\Database\Schema\Grammar\MysqlGrammarTest:testDefault' => ['description' => 'The grammar has the expected default values after initialization', 'type' => 'framework'],

View File

@ -28,8 +28,7 @@ $config = [
'login' => 'root', /* db login name */
'password' => 'root', /* db login password */
'database' => 'oms', /* db name */
'prefix' => 'oms_', /* db table prefix */
'weight' => 1000, /* db table prefix */
'weight' => 1000, /* db table weight */
],
'insert' => [
'db' => 'mysql', /* db type */
@ -38,8 +37,7 @@ $config = [
'login' => 'root', /* db login name */
'password' => 'root', /* db login password */
'database' => 'oms', /* db name */
'prefix' => 'oms_', /* db table prefix */
'weight' => 1000, /* db table prefix */
'weight' => 1000, /* db table weight */
],
'select' => [
'db' => 'mysql', /* db type */
@ -48,8 +46,7 @@ $config = [
'login' => 'root', /* db login name */
'password' => 'root', /* db login password */
'database' => 'oms', /* db name */
'prefix' => 'oms_', /* db table prefix */
'weight' => 1000, /* db table prefix */
'weight' => 1000, /* db table weight */
],
'update' => [
'db' => 'mysql', /* db type */
@ -58,8 +55,7 @@ $config = [
'login' => 'root', /* db login name */
'password' => 'root', /* db login password */
'database' => 'oms', /* db name */
'prefix' => 'oms_', /* db table prefix */
'weight' => 1000, /* db table prefix */
'weight' => 1000, /* db table weight */
],
'delete' => [
'db' => 'mysql', /* db type */
@ -68,8 +64,7 @@ $config = [
'login' => 'root', /* db login name */
'password' => 'root', /* db login password */
'database' => 'oms', /* db name */
'prefix' => 'oms_', /* db table prefix */
'weight' => 1000, /* db table prefix */
'weight' => 1000, /* db table weight */
],
'schema' => [
'db' => 'mysql', /* db type */
@ -78,8 +73,7 @@ $config = [
'login' => 'root', /* db login name */
'password' => 'root', /* db login password */
'database' => 'oms', /* db name */
'prefix' => 'oms_', /* db table prefix */
'weight' => 1000, /* db table prefix */
'weight' => 1000, /* db table weight */
],
],
],
@ -138,7 +132,6 @@ $request->setMethod(RequestMethod::POST);
$request->setData('dbhost', $config['db']['core']['masters']['admin']['host']);
$request->setData('dbtype', $config['db']['core']['masters']['admin']['db']);
$request->setData('dbport', $config['db']['core']['masters']['admin']['port']);
$request->setData('dbprefix', $config['db']['core']['masters']['admin']['prefix']);
$request->setData('dbname', $config['db']['core']['masters']['admin']['database']);
$request->setData('schemauser', $config['db']['core']['masters']['admin']['login']);
$request->setData('schemapassword', $config['db']['core']['masters']['admin']['password']);