File: /var/www/api-movil/database/migrations/2020_09_07_201202_create_versiones_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateVersionesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('versiones', function (Blueprint $table) {
$table->id();
$table->string('etiqueta');
$table->string('vc');
$table->date('fecha');
$table->boolean('actual')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('versiones');
}
}