D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
database
/
migrations
/
Filename :
2017_08_24_071647_create_picture_table.php
back
Copy
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Eloquent\Model; class CreatePictureTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Model::unguard(); Schema::create('picture',function(Blueprint $table){ $table->increments("id"); $table->string("picture"); $table->string("user_id")->nullable(); $table->string("ip"); $table->enum("showhide", ["show", "hide", ])->nullable(); $table->string("type")->nullable(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('picture'); } }