Drops a sequence.

@param string $name The sequence name.

@throws \Fridge\DBAL\Exception\SchemaException If the sequence does not exist.
778828
public function dropSequence($name)
    {
        if (!$this->hasSequence($name)) {
            throw SchemaException::schemaSequenceDoesNotExist($this->getName(), $name);
        }

        unset($this->sequences[$name]);
    }
19209
public function deleteByKey($name) : void
    {
        if(!$this->keyExists($name)) {
            return;
        }

        parent::deleteByKey($name);
        unset($_SESSION[$name]);
    }
432045
public function dropSequence($sequence)
    {
        $changeSetElt = $this->createChangeSet('drop-sequence-' . $sequence->getName());

        $sequenceName = QualifiedName::fromAsset($sequence);
        $dropSequenceElt = $this->document->createElement('dropSequence');

        if ($sequenceName->getNamespaceName()) {
            $dropSequenceElt->setAttribute('schemaName', $sequenceName->getNamespaceName());
        }

        $dropSequenceElt->setAttribute('sequenceName', $sequenceName->getName());

        $changeSetElt->appendChild($dropSequenceElt);
        $this->root->appendChild($changeSetElt);
    }
1129892
public function destroy($name) {
        if (!isset($this->_storage[$name])) {
            trigger_error("Attempted to destroy non-existent variable $name",
                          E_USER_ERROR);
            return;
        }
        unset($this->_storage[$name]);
    }
312564
public function remove($name)
    {
        unset($this->treated[$name]);
        unset($this->services[$name]);
        unset($this->parameters[$name]);
    }
382028
public function DropColumn($Name) {
      if (!$this->Query('alter table `'.$this->_DatabasePrefix.$this->_TableName.'` drop column `'.$Name.'`'))
         throw new Exception(sprintf(T('Failed to remove the `%1$s` column from the `%2$s` table.'), $Name, $this->_DatabasePrefix.$this->_TableName));

      return TRUE;
   }
544744
public function dropAndCreateSequence(Sequence $sequence)
    {
        $this->tryMethod('dropSequence', $sequence->getQuotedName($this->_platform));
        $this->createSequence($sequence);
    }
298844
public function dropPrimaryKey($name, $table = null)
    {
        return $this->db->alterTable($this->getTable($table))
                        ->dropConstraint($name)
                        ->execute();
    }
636045
public function remove($name)
    {
        if (isset($this->items[$name])) {
            $this->count--;
        }

        unset($this->items[$name]);
    }
242795
public function dropDatabase($name)
    {
        if ($this->eventManager->hasListeners(Events::PRE_DROP_DATABASE)) {
            // @codeCoverageIgnoreStart
            $this->eventManager->dispatchEvent(Events::PRE_DROP_DATABASE, new EventArgs($this, $name));
            // @codeCoverageIgnoreEnd
        }

        $response = $this->client->request('DELETE', sprintf('/%s/', urlencode($name)));

        if (404 === $response->getStatusCode()) {
            throw new Exception(sprintf('The database "%s" does not exist', $name));
        }

        $json = (string) $response->getBody();
        $status = JSONEncoder::decode($json);

        if ($this->eventManager->hasListeners(Events::POST_DROP_DATABASE)) {
            // @codeCoverageIgnoreStart
            $this->eventManager->dispatchEvent(Events::POST_DROP_DATABASE, new EventArgs($this, $name));
            // @codeCoverageIgnoreEnd
        }

        return isset($status['ok']) && $status['ok'] === true;
    }
322154
public function dropPrimaryKey()
    {
        if (!$this->hasPrimaryKey()) {
            throw SchemaException::tablePrimaryKeyDoesNotExist($this->getName());
        }

        foreach ($this->getIndexes() as $index) {
            if ($index->hasSameColumnNames($this->getPrimaryKey()->getColumnNames())) {
                $this->dropIndex($index->getName());
            }
        }

        $this->primaryKey = null;
    }
664549
public function removeEvent(string $name, ?string $table = null): void
    {
        $this->connection->getEventHandler()->removeEvent($name, $table);
    }
638872
public function remove($name)
    {
        $names = (array)$name;

        foreach ($names as $name) {
            if (Arr::key($name, $this->_assets)) {
                unset($this->_assets[$name]);
            }
        }
    }
169430
public static function clearInstance($name)
  {
    $key = self::_instanceKey($name);
    
    if (isset(self::$_instances[$key])) {
      unset(self::$_instances[$key]);
    }
  }
1230168
public static function remove($name, $colmuns)
    {
        if (self::existe($name)) {
            $name = self::table($name);
            //
            self::$query = 'alter table '.$name.' ';
            //
            if (is_array($colmuns)) {
                for ($i = 0; $i < Collection::count($colmuns); $i++) {
                    self::$query .= ' drop '.$colmuns[$i].(($i == (Collection::count($colmuns) - 1)) ? '' : ',');
                }
            } else {
                self::$query .= ' drop '.$colmuns;
            }
            //
            return Database::exec(self::$query);
        } else {
            throw new SchemaTableNotExistException($name);
        }
    }
518573
public function remove($name)
    {
        $this->requireNames();
        
        $lower = strtolower($name);
        if(array_key_exists($lower, $this->names)) {
            $name = $this->names[$lower];
            unset($this->names[$lower]);
            unset($this->headers[$name]);
        }
    }
241077
public function dropColumn( $table, $name )
    {
        try
        {
            $tmpTable = $table . '_old';

            $this->startTransaction();

            $this->copyTable( $table, $tmpTable, [ $name ] );

            $this->dropTable( $tmpTable );

            $this->commitTransaction();
        }
        catch ( Exception $e )
        {
            $this->rollbackTransaction();

            return FALSE;
        }

        return TRUE;
    }