tethys/database/migrations/2019_08_28_083531_create_projects_table.php
Arno Kaimbacher 54edfb4617 - add ProjectsTableSeeder.php
- project label: allow 10 chars
2020-06-10 21:09:22 +02:00

35 lines
737 B
PHP

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