| 123456789101112131415161718192021222324252627282930313233343536373839 | <?phpuse Illuminate\Support\Facades\Schema;use Illuminate\Database\Schema\Blueprint;use Illuminate\Database\Migrations\Migration;class CreateTreatTable extends Migration{    /**     * Run the migrations.     *     * @return void     */    public function up()    {        Schema::create('treat', function (Blueprint $table) {            $table->increments('id');            $table->integer('property_id')->length(10)->nullable();            $table->integer('c_id')->length(10);            $table->text('title');            $table->string('pic')->length(255);            $table->text('intro');            $table->string('content');            $table->smallInteger('sort');            $table->integer('addtime')->length(10);            $table->timestamps();        });    }    /**     * Reverse the migrations.     *     * @return void     */    public function down()    {        Schema::dropIfExists('treat');    }}
 |