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('programs', function (Blueprint $table) {
|
||
|
$table->id('program_id');
|
||
|
$table->string('title', 255)->nullable();
|
||
|
$table->string('alias', 255)->nullable();
|
||
|
$table->integer('countries_id')->nullable();
|
||
|
$table->text('details')->nullable();
|
||
|
$table->text('required_documents')->nullable();
|
||
|
$table->text('qualification')->nullable();
|
||
|
$table->string('image', 255)->nullable();
|
||
|
$table->string('thumb', 255)->nullable();
|
||
|
$table->string('cover', 255)->nullable();
|
||
|
$table->text('remarks')->nullable();
|
||
|
$table->integer('display_order')->default(1);
|
||
|
$table->integer('status')->default(1);
|
||
|
$table->timestamps();
|
||
|
$table->text('seo_keywords')->nullable();
|
||
|
$table->text('seo_title')->nullable();
|
||
|
$table->text('seo_descriptions')->nullable();
|
||
|
$table->text('og_tags')->nullable();
|
||
|
$table->integer('createdby')->nullable();
|
||
|
$table->integer('updatedby')->nullable();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*/
|
||
|
public function down(): void
|
||
|
{
|
||
|
Schema::dropIfExists('programs');
|
||
|
}
|
||
|
};
|