public function dropSelectedDatabase()
 {
     if (self::model_schema_as_database()) {
         // Check current schema is valid
         $oldSchema = $this->schema;
         if (empty($oldSchema)) {
             return true;
         }
         // Nothing selected to drop
         // Select another schema
         if ($oldSchema !== $this->schemaOriginal) {
             $this->setSchema($this->schemaOriginal);
         } elseif ($oldSchema !== self::MASTER_SCHEMA) {
             $this->setSchema(self::MASTER_SCHEMA);
         } else {
             $this->schema = null;
         }
         // Remove this schema
         $this->schemaManager->dropSchema($oldSchema);
     } else {
         parent::dropSelectedDatabase();
     }
 }