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

30 lines
735 B
PHP
Executable File

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateScreensTable extends Migration
{
public function up()
{
Schema::create('screens', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name');
$table->string('path');
$table->string('path_thumb')->nullable();
$table->integer('product_id');
$table->bigInteger('size')->default(0);
$table->string('type')->default('image/jpeg');
//$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('screens');
}
}