definitionAggregator = $definitionAggregator; $this->dbSchemaWriter = $dbSchemaWriter; } /** * {@inheritdoc} */ public function isOperationDestructive() { return true; } /** * {@inheritdoc} */ public function getOperationName() { return self::OPERATION_NAME; } /** * {@inheritdoc} */ public function doOperation(ElementHistory $tableHistory) { /** * @var Table $table */ $table = $tableHistory->getOld(); return [$this->dbSchemaWriter->dropTable($table->getName(), $table->getResource())]; } }