38 lines
938 B
PHP
38 lines
938 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateRevisionesTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('revisiones', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->timestamps();
|
|
$table->unsignedBigInteger('fk_operazione_id');
|
|
$table->foreign('fk_operazione_id')->references('id')->on('operaziones')->cascadeOnDelete();
|
|
$table->longText('descrizione');
|
|
$table->string('centrorevisione',255);
|
|
$table->boolean('superata');
|
|
$table->date('dataproxrevisione');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('revisiones');
|
|
}
|
|
}
|