/** * Handle the command. * * @param StreamSchema $schema */ public function handle(StreamSchema $schema) { $table = $this->stream->getEntryTableName(); $schema->dropTable($table); if ($this->stream->isTranslatable()) { $table = $this->stream->getEntryTranslationsTableName(); $schema->dropTable($table); } }
/** * Handle the command. * * @param DropStreamsEntryTable $command */ public function handle(DropStreamsEntryTable $command) { $stream = $command->getStream(); $table = $stream->getEntryTableName(); $this->schema->dropTable($table); if ($stream->isTranslatable()) { $table = $stream->getEntryTranslationsTableName(); $this->schema->dropTable($table); } }