Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
Signed-off-by: Vinzenz Rosenkranz <[email protected]>
  • Loading branch information
v1r0x committed Nov 7, 2023
1 parent 0a47520 commit 368e0ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database/migrations/2020_02_19_162414_add_comment_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use App\AttributeValue;
use App\Comment;
use App\User;
use App\Traits\ModerationScope;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
Expand Down Expand Up @@ -34,7 +35,7 @@ public function up()
$table->foreign('reply_to')->references('id')->on('comments')->onDelete('cascade');
});

$values = AttributeValue::all();
$values = AttributeValue::withoutGlobalScope(ModerationScope::class)->get();

foreach($values as $v) {
try {
Expand Down

0 comments on commit 368e0ce

Please sign in to comment.