<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class Add5d405abd8afa0RelationshipsToSubscriptionDeveloperTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('subscription_developers', function(Blueprint $table) {
            if (!Schema::hasColumn('subscription_developers', 'developer_id')) {
                $table->integer('developer_id')->unsigned()->nullable();
                $table->foreign('developer_id', '329634_5d4059cc05060')->references('id')->on('developers')->onDelete('set null');
                }
                
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('subscription_developers', function(Blueprint $table) {
            
        });
    }
}
