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;
class AddMissingFields extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::table(
'contents',
function (Blueprint $table) {
$table->string('type')->nullable();
$table->boolean('published')->default(true);
}
);
'revisions',
* Reverse the migrations.
public function down()
$table->removeColumn('type');
$table->removeColumn('published');