Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 5, 2020 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/6987c0bfdc935448dde98ec155e001ad to your computer and use it in GitHub Desktop.
Save parzibyte/6987c0bfdc935448dde98ec155e001ad to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateNivelsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('niveles', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string("nombre");
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('niveles');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment