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 ModifyUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::table('users', function (Blueprint $table) {
$table->string('name')->nullable()->change();
$table->string('first_name')->nullable();
$table->string('last_name')->nullable();
$table->string('company')->nullable();
$table->string('piva')->nullable();
$table->boolean('admin')->default(false);
$table->string('telephone')->nullable();
$table->string('address')->nullable();
$table->string('province')->nullable();
$table->text('floor')->nullable();
$table->string('city')->nullable();
$table->string('cap')->nullable();
});
}
* Reverse the migrations.
public function down()
#Schema::dropIfExists('users');