blessing-skin-server/database/migrations/2019_03_14_174727_create_closet.php

33 lines
658 B
PHP
Raw Normal View History

2019-03-14 23:55:49 +08:00
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCloset extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_closet', function (Blueprint $table) {
$table->integer('user_uid');
$table->integer('texture_tid');
$table->text('item_name')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_closet');
}
}