2019-11-23 15:01:59 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
class CreateOperationsTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.5
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('operations', function (Blueprint $table) {
|
|
|
|
$table->increments('id');
|
|
|
|
$table->dateTime('operationDate');
|
|
|
|
$table->string('location', 100);
|
|
|
|
$table->string('target', 100);
|
|
|
|
$table->string('dangerType', 100);
|
|
|
|
$table->string('description');
|
|
|
|
$table->integer('commanderID');
|
2020-01-24 23:05:55 +01:00
|
|
|
$table->softDeletes();
|
2019-11-23 15:01:59 +01:00
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('operations');
|
|
|
|
}
|
|
|
|
}
|