• File: 2021_09_27_130814_create_permalinks_table.php
  • Full Path: /home/masbinta/public_html/core/database/migrations/2021_09_27_130814_create_permalinks_table.php
  • File size: 858 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

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

class CreatePermalinksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('permalinks', function (Blueprint $table) {
            $table->id();
            $table->integer('language_id');
            $table->string('permalink', 50)->nullable();
            $table->string('type', 100)->nullable();
            $table->tinyInteger('details')->default(0)->comment('1 - for details page, 0 - for non-details page');
            $table->timestamps();
        });
    }

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