Skip to content

Commit

Permalink
Merge pull request #59 from SiebeVE/publish-snapshots-table
Browse files Browse the repository at this point in the history
Publish new snapshots table
  • Loading branch information
freekmurze authored Feb 7, 2020
2 parents 704c729 + 8fa2c4b commit 6ced1d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/EventSourcingServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ public function boot(): void
], 'migrations');
}

if (! class_exists('CreateSnapshotsTable')) {
$this->publishes([
__DIR__.'/../stubs/create_snapshots_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_snapshots_table.php'),
], 'migrations');
}

Event::subscribe(EventSubscriber::class);

$this->discoverEventHandlers();
Expand Down

0 comments on commit 6ced1d9

Please sign in to comment.