Drop view and table

This commit is contained in:
andryyy 2017-05-17 21:54:53 +02:00
parent fa9a058cf8
commit d215bf1e5b

View File

@ -569,6 +569,7 @@ function init_db_schema() {
// Recreate SQL views // Recreate SQL views
foreach ($views as $view => $create) { foreach ($views as $view => $create) {
$pdo->query("DROP VIEW IF EXISTS `" . $view . "`;"); $pdo->query("DROP VIEW IF EXISTS `" . $view . "`;");
$pdo->query("DROP TABLE IF EXISTS `" . $view . "`;");
$pdo->query($create); $pdo->query($create);
} }