Repository URL to install this package:
|
Version:
0.2.1 ▾
|
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateStudentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('students', function (Blueprint $table) {
$table->increments('id');
$table->string('first_name');
$table->string('middle_name');
$table->string('last_name');
$table->string('profile_photo');
$table->date('birthday');
$table->string('country')->index();
$table->string('professional_doc');
$table->string('phone');
$table->string('email')->index();
$table->boolean('is_active')->default(true)->index();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('students');
}
}