You are here

public function SerialSQLStorage::dropStorageFromName in Serial Field 8

Drops an assistant serial storage for a deleted field.

Parameters

string $storageName: Storage name.

Overrides SerialStorageInterface::dropStorageFromName

1 call to SerialSQLStorage::dropStorageFromName()
SerialSQLStorage::dropStorage in src/SerialSQLStorage.php
Drops an assistant serial storage for a deleted field.

File

src/SerialSQLStorage.php, line 181

Class

SerialSQLStorage
Serial storage service definition.

Namespace

Drupal\serial

Code

public function dropStorageFromName($storageName) {
  $dbSchema = Database::getConnection()
    ->schema();
  $dbSchema
    ->dropTable($storageName);
}