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