Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
trouvaille
/
migrations
:
2019_04_01_045229_create_user_meta_table.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUserMetaTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { if(!Schema::hasTable('user_meta')) { Schema::create('user_meta', function (Blueprint $table) { $table->bigIncrements('id'); $table->integer('user_id')->nullable(); $table->string('name', 255)->nullable(); $table->text('val')->nullable(); $table->integer('create_user')->nullable(); $table->integer('update_user')->nullable(); $table->softDeletes(); $table->timestamps(); }); } } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('user_meta'); } }