39 lines
1.2 KiB
PHP
39 lines
1.2 KiB
PHP
<?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::create('preparationclasstestimonials', function (Blueprint $table) {
|
|
$table->id('testimonial_id');
|
|
$table->integer('preparationclasses_id')->nullable();
|
|
$table->string('name', 255)->nullable();
|
|
$table->string('student', 255)->nullable();
|
|
$table->string('rating', 255)->nullable();
|
|
$table->text('message')->nullable();
|
|
$table->string('thumb', 255)->nullable();
|
|
$table->text('remarks')->nullable();
|
|
$table->integer('display_order')->default(1);
|
|
$table->integer('status')->default(1);
|
|
$table->integer('createdby')->nullable();
|
|
$table->integer('updatedby')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('preparationclasstestimonials');
|
|
}
|
|
};
|