You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
864 B

7 years ago
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
7 years ago
class CreateItemsTable extends Migration
7 years ago
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
7 years ago
Schema::create('items', function (Blueprint $table) {
7 years ago
$table->increments('id');
7 years ago
$table->string('title');
7 years ago
$table->string('colour')->nullable();
$table->string('icon')->nullable();
7 years ago
$table->string('url');
7 years ago
$table->text('description')->nullable();
7 years ago
$table->boolean('pinned')->default(false);
7 years ago
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
7 years ago
Schema::dropIfExists('items');
7 years ago
}
}