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