Skip to content

Commit c247704

Browse files
Johnny MaynneJohnny Maynne
authored andcommitted
add index to morphs
1 parent 5983410 commit c247704

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

database/migrations/create_filament_comments_table.php.stub

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ return new class extends Migration
1111
Schema::create('filament_comments', function (Blueprint $table) {
1212
$table->id();
1313
$table->unsignedBigInteger('user_id');
14-
$table->string('subject_type');
15-
$table->unsignedBigInteger('subject_id');
14+
$table->morphs('subject');
1615
$table->longText('comment');
1716
$table->timestamps();
1817
$table->softDeletes();

0 commit comments

Comments
 (0)