Ale Gallo
b91cf0cbde
committing part of the laravel system with templating files and api implementation.
32 lines
784 B
PHP
32 lines
784 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('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');
|
|
}
|
|
};
|