File: /home/imensosw/www/amanda/database/migrations/2021_01_07_054346_add_fname_in_users.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddFnameInUsers extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->string('fname')->nullable();
$table->string('lname')->nullable();
$table->date('dob')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('fname');
$table->dropColumn('lname');
$table->dropColumn('dob');
});
}
}