46 lines
1.5 KiB
PHP
46 lines
1.5 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('testimonials', function (Blueprint $table) {
|
||
|
$table->id('testimonial_id');
|
||
|
$table->integer('branches_id')->nullable();
|
||
|
$table->string('for', 255)->nullable();
|
||
|
$table->integer('ref')->default(0);
|
||
|
$table->string('by', 255)->nullable();
|
||
|
$table->integer('rating')->nullable();
|
||
|
$table->string('alias', 200)->nullable();
|
||
|
$table->string('image', 255)->nullable();
|
||
|
$table->string('cover', 255)->nullable();
|
||
|
$table->text('text')->nullable();
|
||
|
$table->string('remarks', 255)->nullable();
|
||
|
$table->integer('display_order')->nullable();
|
||
|
$table->integer('status')->nullable();
|
||
|
$table->string('testimonials_faculty', 255)->nullable();
|
||
|
$table->string('testimonials_university', 255)->nullable();
|
||
|
$table->string('university', 255)->nullable();
|
||
|
$table->string('faculty', 255)->nullable();
|
||
|
$table->string('createdby', 255)->nullable();
|
||
|
$table->string('updatedby', 255)->nullable();
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*/
|
||
|
public function down(): void
|
||
|
{
|
||
|
Schema::dropIfExists('testimonials');
|
||
|
}
|
||
|
};
|