From a3cd99d5c549e4151b2e801dab0282c5ca797bae Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Mon, 17 Aug 2020 08:55:34 +0300 Subject: [PATCH] Added missing drop table --- src/Appwrite/Database/Adapter/MySQL.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Appwrite/Database/Adapter/MySQL.php b/src/Appwrite/Database/Adapter/MySQL.php index 378a4d6b81..5cac8af6be 100644 --- a/src/Appwrite/Database/Adapter/MySQL.php +++ b/src/Appwrite/Database/Adapter/MySQL.php @@ -435,6 +435,7 @@ class MySQL extends Adapter throw new Exception('Empty namespace'); } + $unique = 'app_'.$namespace.'.database.unique'; $documents = 'app_'.$namespace.'.database.documents'; $properties = 'app_'.$namespace.'.database.properties'; $relationships = 'app_'.$namespace.'.database.relationships'; @@ -442,6 +443,7 @@ class MySQL extends Adapter $abuse = 'app_'.$namespace.'.abuse.abuse'; try { + $this->getPDO()->prepare('DROP TABLE `'.$unique.'`;')->execute(); $this->getPDO()->prepare('DROP TABLE `'.$documents.'`;')->execute(); $this->getPDO()->prepare('DROP TABLE `'.$properties.'`;')->execute(); $this->getPDO()->prepare('DROP TABLE `'.$relationships.'`;')->execute();