ldc-cocotte/database/migrations/2020_11_05_084122_create_ranges.php

37 lines
789 B
PHP
Raw Normal View History

2020-11-05 17:08:32 +01:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2020-11-09 11:03:13 +01:00
class CreateRanges extends Migration
2020-11-05 17:08:32 +01:00
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
2020-11-09 11:03:13 +01:00
Schema::create('ranges', function (Blueprint $table) {
2020-11-05 17:08:32 +01:00
$table->id();
$table->string('name');
$table->string('slug');
$table->string('description');
$table->string('picture')->nullable();
$table->boolean('status')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
2020-11-09 11:03:13 +01:00
Schema::dropIfExists('ranges');
2020-11-05 17:08:32 +01:00
}
}