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

25 lines
568 B
PHP
Executable File

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBrendsTable extends Migration
{
public function up()
{
Schema::create('brands', function (Blueprint $table) {
$table->bigIncrements('id');
$table->jsonb('name');
$table->string('image');
$table->string('slug')->nullable();
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('brands');
}
}