comments user

This commit is contained in:
2026-06-11 13:14:01 +05:45
parent 812822ebb5
commit 5c69f89de8
5 changed files with 44 additions and 6 deletions
@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('comments', function (Blueprint $table) {
$table->unsignedBigInteger('created_by')->default(1);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('comments', function (Blueprint $table) {
$table->dropColumn('created_by');
});
}
};