for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Phpmig\Migration\Migration;
use Illuminate\Database\Capsule\Manager as Capsule;
class AddHasPicToUsersTableMigration extends Migration
{
/**
* Do the migration
*/
public function up()
Capsule::schema()->table('users', function($table)
$table->enum('has_pic',['no','yes'])->default('no');
});
}
* Undo the migration
public function down()
$table->drop('has_pic');