/**
  * 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);
     }
 }
 /**
  * Return the entry translations table name.
  *
  * @param  StreamInterface $stream
  * @return mixed
  */
 public function parse(StreamInterface $stream)
 {
     return $stream->getEntryTranslationsTableName();
 }
 /**
  * Rename a translations table.
  *
  * @param StreamInterface $from
  * @param StreamInterface $to
  */
 public function renameTranslationsTable(StreamInterface $from, StreamInterface $to)
 {
     if ($from->getEntryTranslationsTableName() === $to->getEntryTranslationsTableName()) {
         return;
     }
     $this->schema->rename($from->getEntryTranslationsTableName(), $to->getEntryTranslationsTableName());
 }