pianello-api/database/migrations/2023_10_31_164708_create_pictures_table.php

33 lines
784 B
PHP
Raw Normal View History

<?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('pictures', function (Blueprint $table) {
$table->id();
$table->string('filename');
$table->string('description_it', 300)->nullable();
$table->string('description_en', 300)->nullable();
$table->unsignedInteger('file_size');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('pictures');
}
};