AddIsWebhook::up PHP Method

up() public method

Run the migrations.
public up ( )
    public function up()
    {
        Schema::table('deployments', function (Blueprint $table) {
            $table->boolean('is_webhook')->default(false);
        });
        DB::table('deployments')->whereRaw('user_id IS NULL')->update(['is_webhook' => true]);
    }
AddIsWebhook