tethys/database/migrations/2019_08_28_083531_create_projects_table.php

35 lines
737 B
PHP
Raw Permalink Normal View History

2018-08-06 12:30:51 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2018-08-06 12:30:51 +00:00
class CreateProjectsTable extends Migration
2018-08-06 12:30:51 +00:00
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('projects', function (Blueprint $table) {
2018-08-06 12:30:51 +00:00
$table->increments('id');
$table->string('label', 50);
$table->string('name', 255);
$table->string('description', 255)->nullable();
2018-08-06 12:30:51 +00:00
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('projects');
2018-08-06 12:30:51 +00:00
}
}