Skip to content

Commit

Permalink
Publish new snapshots table
Browse files Browse the repository at this point in the history
  • Loading branch information
SiebeVE authored Feb 7, 2020
1 parent 704c729 commit 8fa2c4b
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 8fa2c4b

Please sign in to comment.