perform a views regenerating
Dieser Commit ist enthalten in:
Ursprung
5faa4ddb13
Commit
54a2a721cb
|
@ -20,6 +20,7 @@ use Doctrine\DBAL\Driver\Exception as DoctrineDriverException;
|
||||||
use Doctrine\DBAL\Exception as DoctrineException;
|
use Doctrine\DBAL\Exception as DoctrineException;
|
||||||
use Doctrine\DBAL\Query\QueryBuilder;
|
use Doctrine\DBAL\Query\QueryBuilder;
|
||||||
use OxidEsales\Eshop\Core\DatabaseProvider;
|
use OxidEsales\Eshop\Core\DatabaseProvider;
|
||||||
|
use OxidEsales\Eshop\Core\DbMetaDataHandler;
|
||||||
use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException;
|
use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException;
|
||||||
use OxidEsales\Eshop\Core\Exception\DatabaseErrorException;
|
use OxidEsales\Eshop\Core\Exception\DatabaseErrorException;
|
||||||
use OxidEsales\Eshop\Core\Exception\DatabaseException;
|
use OxidEsales\Eshop\Core\Exception\DatabaseException;
|
||||||
|
@ -48,6 +49,17 @@ class Actions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Regenerate views for changed tables
|
||||||
|
*/
|
||||||
|
public function regenerateViews()
|
||||||
|
{
|
||||||
|
$oDbMetaDataHandler = oxNew(DbMetaDataHandler::class);
|
||||||
|
$oDbMetaDataHandler->updateViews();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool
|
||||||
* @throws ContainerExceptionInterface
|
* @throws ContainerExceptionInterface
|
||||||
|
|
|
@ -38,6 +38,7 @@ class Events
|
||||||
/** @var Actions $actions */
|
/** @var Actions $actions */
|
||||||
$actions = oxNew(Actions::class);
|
$actions = oxNew(Actions::class);
|
||||||
$actions->setupDatabase();
|
$actions->setupDatabase();
|
||||||
|
$actions->regenerateViews();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function onDeactivate()
|
public static function onDeactivate()
|
||||||
|
|
Laden…
In neuem Issue referenzieren