added tag column in course table

Cette révision appartient à :
Ibrahim Khail Shakil 2023-12-23 13:07:30 +06:00
Parent 182c7a14d8
révision 278e3a2fa2

Voir le fichier

@ -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('courses', function (Blueprint $table) {
$table->enum('tag', ['popular', 'featured', 'upcoming'])->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('courses', function (Blueprint $table) {
$table->dropColumn('tag');
});
}
};