Skip to content

Commit

Permalink
Merge pull request #219 from cybercog/feature/configurable-table-name
Browse files Browse the repository at this point in the history
Message migration table name configurable
  • Loading branch information
cmgmyr authored Apr 9, 2017
2 parents 87781d7 + fb84531 commit 0d9ac75
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Cmgmyr\Messenger\Models\Models;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
Expand All @@ -13,7 +14,7 @@ class AddSoftDeletesToMessagesTable extends Migration
*/
public function up()
{
Schema::table('messages', function (Blueprint $table) {
Schema::table(Models::table('messages'), function (Blueprint $table) {
$table->softDeletes();
});
}
Expand All @@ -25,7 +26,7 @@ public function up()
*/
public function down()
{
Schema::table('messages', function (Blueprint $table) {
Schema::table(Models::table('messages'), function (Blueprint $table) {
$table->dropSoftDeletes();
});
}
Expand Down

0 comments on commit 0d9ac75

Please sign in to comment.