diff --git a/db_structure.php b/db_structure.php index a80283094e..e190025f7a 100644 --- a/db_structure.php +++ b/db_structure.php @@ -372,6 +372,10 @@ foreach ($tables as $keyname => $each_table) { $empty_table .= $titles['NoEmpty']; } $empty_table .= ''; + // truncating views doesn't work + if ($table_is_view) { + $empty_table = ' '; + } $drop_query = 'DROP ' . ($table_is_view ? 'VIEW' : 'TABLE') @@ -446,7 +450,9 @@ foreach ($tables as $keyname => $each_table) { unset($table_part); } ?> -