for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProfilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('profiles', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('user_id');
$table->string('username')->nullable();
$table->string('profile_pic')->nullable();
$table->integer('status')->default(1);
$table->integer('gender')->nullable();
$table->integer('martial_status')->nullable();
$table->integer('blood_group')->nullable();
$table->string('country')->nullable();
$table->string('address')->nullable();
$table->json('phone_no')->nullable();
$table->string('email')->nullable();
$table->string('birthday')->nullable();
$table->string('facebook')->nullable();
$table->string('instagram')->nullable();
$table->string('twitter')->nullable();
$table->string('linkedin')->nullable();
$table->string('father_name')->nullable();
$table->string('mother_name')->nullable();
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('profiles');