Drop view and table

master
andryyy 2017-05-17 21:54:53 +02:00
parent fa9a058cf8
commit d215bf1e5b
1 changed files with 1 additions and 0 deletions

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);
} }