perform a views regenerating

Cette révision appartient à :
Daniel Seifert 2022-12-19 10:59:38 +01:00
Parent 5faa4ddb13
révision 54a2a721cb
Signé par: DanielS
ID de la clé GPG: 6A513E13AEE66170
2 fichiers modifiés avec 13 ajouts et 0 suppressions

Voir le fichier

@ -20,6 +20,7 @@ use Doctrine\DBAL\Driver\Exception as DoctrineDriverException;
use Doctrine\DBAL\Exception as DoctrineException;
use Doctrine\DBAL\Query\QueryBuilder;
use OxidEsales\Eshop\Core\DatabaseProvider;
use OxidEsales\Eshop\Core\DbMetaDataHandler;
use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException;
use OxidEsales\Eshop\Core\Exception\DatabaseErrorException;
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
* @throws ContainerExceptionInterface

Voir le fichier

@ -38,6 +38,7 @@ class Events
/** @var Actions $actions */
$actions = oxNew(Actions::class);
$actions->setupDatabase();
$actions->regenerateViews();
}
public static function onDeactivate()