PATH:
home
/
lab2454c
/
vaultchip.com
/
platform
/
packages
/
page
/
database
/
migrations
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreatePagesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('pages', function (Blueprint $table) { $table->id(); $table->string('name', 120); $table->longText('content')->nullable(); $table->integer('user_id')->references('id')->on('users'); $table->string('image', 255)->nullable(); $table->string('template', 60)->nullable(); $table->tinyInteger('is_featured')->default(0); $table->string('description', 400)->nullable(); $table->string('status', 60)->default('published'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('pages'); } }
[+]
..
[-] 2016_06_28_221418_create_pages_table.php
[edit]