for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class OptionalChangesAdmin extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
// Schema::table('changes', function (Blueprint $table) {
// $table->integer('admin_id')->unsigned()->nullable()->change();
// });
// $table->dropForeign(['admin_id']);
// $table->foreign('admin_id')
// ->references('id')->on('admins')
// ->onUpdate('cascade')
// ->onDelete('set null');
}
* Reverse the migrations.
public function down()
// $table->integer('admin_id')->unsigned()->change();
// ->onDelete('cascade');