master_template/database/migrations/2024_06_10_100024_create_tbl_photos.php
2024-06-10 18:06:58 +05:45

36 lines
1017 B
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('photos', function (Blueprint $table) {
$table->id('photo_id');
$table->integer('galleries_id')->nullable();
$table->string('title',255)->nullable()->default(null);
$table->string('alias',255)->nullable()->default(null);
$table->string('thumb',255)->nullable()->default(null);
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->integer('createdby')->default(1);
$table->integer('updatedby')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('photos');
}
};