<?php

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

class CreatePostPivotCategoriesTable extends Migration
{
    


    public function up()
    {
        Schema::create('post_pivot_categories', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('post_id')->unsigned();
            $table->integer('categorie_post_id')->unsigned();
            $table->timestamps();
        });
    }

   

   
    public function down()
    {
        Schema::dropIfExists('post_pivot_categories');
    }
}
