unsa-pis-be/database/migrations/2022_12_11_224806_create_actas_table.php
2022-12-12 13:52:13 -05:00

39 lines
779 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('actas', function (Blueprint $table) {
$table->id();
$table->date('fecha');
$table->string('titulo', 255);
$table->foreignId('id_estandar')
->constrained('estandars');
$table->string('file', 255);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('actas');
}
};