Files
getgreen-backend/database/migrations/2019_09_20_154539_create_files_table.php

26 lines
606 B
PHP
Executable File

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFilesTable extends Migration
{
public function up()
{
Schema::create('files', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name');
$table->string('path');
$table->string('path_thumb')->nullable();
$table->float('size');
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('files');
}
}