Skip to content

Commit

Permalink
Publish migration file - issue #59
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Nov 12, 2016
1 parent a163c63 commit 39abad1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Mpociot/Teamwork/TeamworkServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ protected function publishConfig()
*/
protected function publishMigration()
{
$this->loadMigrationsFrom(__DIR__.'/../../database');
if (! class_exists('TeamworkSetupTables')) {
// Publish the migration
$timestamp = date('Y_m_d_His', time());
$this->publishes([
__DIR__.'/../../database/migrations/2016_05_18_000000_teamwork_setup_tables.php' => database_path('migrations/'.$timestamp.'_teamwork_setup_tables.php'),
], 'migrations');
}
}

/**
Expand Down

0 comments on commit 39abad1

Please sign in to comment.