/**
  * Handle the command.
  *
  * @param StreamSchema $schema
  */
 public function handle(StreamSchema $schema)
 {
     $schema->createTable($this->stream);
     if ($this->stream->isTranslatable()) {
         $table = $this->stream->getEntryTranslationsTableName();
         $schema->createTranslationsTable($table);
     }
 }
 /**
  * Handle the command.
  *
  * @param StreamSchema $schema
  */
 public function handle(StreamSchema $schema, StreamRepositoryInterface $streams)
 {
     /* @var StreamInterface $stream */
     $stream = $streams->find($this->stream->getId());
     $schema->renameTable($stream, $this->stream);
     if ($stream->isTranslatable()) {
         $schema->renameTranslationsTable($stream, $this->stream);
     }
 }
 /**
  * Create a new CreateStreamsEntryTableHandler instance.
  *
  * @param CreateStreamsEntryTable $command
  */
 public function handle(CreateStreamsEntryTable $command)
 {
     $stream = $command->getStream();
     $this->schema->createTable($stream);
     if ($stream->isTranslatable()) {
         $table = $stream->getEntryTranslationsTableName();
         $this->schema->createTranslationsTable($table);
     }
 }