<?php

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

class CreateVariantAttributeVariationTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('variant_attribute_variation', function (Blueprint $table) {
            $table->foreignId('variant_id')->constrained();
            $table->foreignId('attribute_variation_id')->constrained();
          //  $table->primary(['variant_id', 'attribute_variation_id'], 'variant_attribute_variation');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('variant_attribute_variation');
    }
}
