master_template/database/migrations/2024_06_10_102250_create_tbl_successstories.php

41 lines
1.2 KiB
PHP
Raw Permalink 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('successstories', function (Blueprint $table) {
$table->id('successstory_id');
$table->integer('countries_id')->nullable();
$table->string('title', 255)->nullable();
$table->string('alias', 200)->nullable();
$table->string('image', 255)->nullable();
$table->text('text')->nullable();
$table->string('remarks', 255)->nullable();
$table->integer('display_order')->nullable();
$table->integer('status')->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('successstories');
}
};