<?php

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

class CreateDocumentTemplateVariablesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //DEPRECATED ---> Struktur geändert, wird nicht mehr genutzt !!
//        Schema::create('document_template_variables', function (Blueprint $table) {
//            $table->increments('id');
//            $table->integer('document_template_id')->unsigned();
//            $table->integer('variable_id')->unsigned();
//            $table->foreign('document_template_id')->references('id')->on('document_templates')->onDelete('cascade');
//            $table->foreign('variable_id')->references('id')->on('variables')->onDelete('cascade');
//            $table->timestamps();
//        });
    }

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