1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

Missing table delete

This commit is contained in:
Eldad Fux 2020-10-29 13:30:34 +02:00
parent 5fd13990aa
commit 8d909539a8

View file

@ -459,6 +459,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';
@ -466,6 +467,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();