/** * 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); } }
/** * 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); } }