1
0
Fork 0
mirror of synced 2024-10-02 02:07:04 +13:00

Added missing drop table

This commit is contained in:
Eldad Fux 2020-08-17 08:55:34 +03:00
parent ae567cdd94
commit a3cd99d5c5

View file

@ -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();