D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
database
/
migrations
/
Filename :
2017_08_02_195509_create_blogs_table.php
back
Copy
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Eloquent\Model; class CreateBlogsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Model::unguard(); Schema::create('blogs',function(Blueprint $table){ $table->increments("id"); $table->string("name"); $table->text("small_body")->nullable(); $table->text("body")->nullable(); $table->string("picture")->nullable(); $table->date("putdate")->nullable(); $table->tinyInteger("showhide")->default(1)->nullable(); $table->string("url")->nullable(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('blogs'); } }