37 lines
1.1 KiB
PHP
37 lines
1.1 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('galleries', function (Blueprint $table) {
|
|
$table->id('gallery_id');
|
|
$table->string('title', 255)->nullable()->default(null);
|
|
$table->text('text')->nullable()->default(null);
|
|
$table->string('alias', 255)->nullable()->default(null);
|
|
$table->string('thumb', 255)->nullable()->default(null);
|
|
$table->string('cover_photo', 255)->nullable()->default(null);
|
|
$table->integer('display_order')->nullable()->default(null);
|
|
$table->integer('status')->nullable()->default(1);
|
|
$table->integer('createdby')->default(null);
|
|
$table->integer('updatedby')->default(null);
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('galleries');
|
|
}
|
|
};
|