planifibo7/database/migrations/2021_07_15_003648_create_di...

34 lines
653 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDiasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('dias', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->foreignId("evento_id");
$table->string("nombre");
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('dias');
}
}