2018-08-06 12:30:51 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2019-08-29 14:58:35 +00:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2019-08-29 14:58:35 +00:00
|
|
|
class CreateProjectsTable extends Migration
|
2018-08-06 12:30:51 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
2019-08-29 14:58:35 +00:00
|
|
|
Schema::create('projects', function (Blueprint $table) {
|
2018-08-06 12:30:51 +00:00
|
|
|
$table->increments('id');
|
2019-08-29 14:58:35 +00:00
|
|
|
$table->string('label', 10);
|
|
|
|
$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()
|
|
|
|
{
|
2019-08-29 14:58:35 +00:00
|
|
|
Schema::dropIfExists('projects');
|
2018-08-06 12:30:51 +00:00
|
|
|
}
|
|
|
|
}
|