Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
core
/
database
/
migrations
:
2021_09_27_130814_create_permalinks_table.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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'); } }