Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
merodiro committed May 8, 2017
1 parent a71d02e commit 5da1f21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/FriendshipsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ class FriendshipsServiceProvider extends ServiceProvider
*/
public function boot()
{
$stub = __DIR__ . '/migrations/';
$target = database_path('migrations') . '/';

$this->publishes([
$stub . 'create_friendships_table.php' => $target . date('Y_m_d_His', time()) . '_create_friendships_table.php',
], 'migrations');

// $this->publishes([
// __DIR__ . '/migrations' => $this->app->databasePath() . '/migrations'
// ], 'migrations');

$this->loadMigrationsFrom(__DIR__.'/migrations');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
// use Illuminate\Support\Facades\Schema;

class CreateFriendshipsTable extends Migration
{
Expand Down

0 comments on commit 5da1f21

Please sign in to comment.