Added missing drop table
This commit is contained in:
parent
ae567cdd94
commit
a3cd99d5c5
1 changed files with 2 additions and 0 deletions
|
@ -435,6 +435,7 @@ class MySQL extends Adapter
|
||||||
throw new Exception('Empty namespace');
|
throw new Exception('Empty namespace');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$unique = 'app_'.$namespace.'.database.unique';
|
||||||
$documents = 'app_'.$namespace.'.database.documents';
|
$documents = 'app_'.$namespace.'.database.documents';
|
||||||
$properties = 'app_'.$namespace.'.database.properties';
|
$properties = 'app_'.$namespace.'.database.properties';
|
||||||
$relationships = 'app_'.$namespace.'.database.relationships';
|
$relationships = 'app_'.$namespace.'.database.relationships';
|
||||||
|
@ -442,6 +443,7 @@ class MySQL extends Adapter
|
||||||
$abuse = 'app_'.$namespace.'.abuse.abuse';
|
$abuse = 'app_'.$namespace.'.abuse.abuse';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
$this->getPDO()->prepare('DROP TABLE `'.$unique.'`;')->execute();
|
||||||
$this->getPDO()->prepare('DROP TABLE `'.$documents.'`;')->execute();
|
$this->getPDO()->prepare('DROP TABLE `'.$documents.'`;')->execute();
|
||||||
$this->getPDO()->prepare('DROP TABLE `'.$properties.'`;')->execute();
|
$this->getPDO()->prepare('DROP TABLE `'.$properties.'`;')->execute();
|
||||||
$this->getPDO()->prepare('DROP TABLE `'.$relationships.'`;')->execute();
|
$this->getPDO()->prepare('DROP TABLE `'.$relationships.'`;')->execute();
|
||||||
|
|
Loading…
Reference in a new issue