45 lines
1.5 KiB
PHP
45 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('preparationclasses', function (Blueprint $table) {
|
||
|
$table->id('preparationclass_id');
|
||
|
$table->string('title', 255)->nullable();
|
||
|
$table->string('alias', 255)->nullable();
|
||
|
$table->integer('parent_preparationclass');
|
||
|
$table->text('details')->nullable();
|
||
|
$table->text('intro')->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->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();
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*/
|
||
|
public function down(): void
|
||
|
{
|
||
|
Schema::dropIfExists('preparationclasses');
|
||
|
}
|
||
|
};
|