Skip to content

Instantly share code, notes, and snippets.

@flavioribeirojr
Created August 14, 2017 15:54
Show Gist options
  • Save flavioribeirojr/ddbbdb7d6722c7905b520fcf3806ad88 to your computer and use it in GitHub Desktop.
Save flavioribeirojr/ddbbdb7d6722c7905b520fcf3806ad88 to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFabricantesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('fabricantes', function (Blueprint $table) {
$table->increments('fab_id');
$table->timestamps('fab_nome');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('fabricantes');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment