43 lines
1.3 KiB
PHP
43 lines
1.3 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('services', function (Blueprint $table) {
|
|
$table->integer('service_id');
|
|
$table->integer('parent_service')->default(0);
|
|
$table->string('title', 250)->nullable();
|
|
$table->string('alias', 250)->nullable();
|
|
$table->text('text')->nullable();
|
|
$table->string('link', 500)->nullable();
|
|
$table->string('cover_photo', 500)->nullable();
|
|
$table->string('image_thumb', 500)->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('services');
|
|
}
|
|
};
|