From d215bf1e5bed21a193b80caaff646fabe18a51bf Mon Sep 17 00:00:00 2001 From: andryyy Date: Wed, 17 May 2017 21:54:53 +0200 Subject: [PATCH] Drop view and table --- data/web/inc/init_db.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/data/web/inc/init_db.inc.php b/data/web/inc/init_db.inc.php index a93680ed..556230b8 100644 --- a/data/web/inc/init_db.inc.php +++ b/data/web/inc/init_db.inc.php @@ -569,6 +569,7 @@ function init_db_schema() { // Recreate SQL views foreach ($views as $view => $create) { $pdo->query("DROP VIEW IF EXISTS `" . $view . "`;"); + $pdo->query("DROP TABLE IF EXISTS `" . $view . "`;"); $pdo->query($create); }