Sindbad~EG File Manager
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCapsulacursosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('capsulacursos', function (Blueprint $table) {
$table->id();
$table->string('titulo');
$table->string('capsula',300);
$table->unsignedBigInteger('curso_id');
$table->foreign('curso_id')->references('id')->on('cursos');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('capsulacursos');
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists