master_template/database/migrations/2024_06_10_100836_create_tbl_preparationclasstestimonials.php

39 lines
1.2 KiB
PHP
Raw Normal View History

2024-06-10 12:21:58 +00:00
<?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');
}
};