2023_03_20_214554_create_one_poem2_table.php 730 Bytes
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateOnePoem2Table extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('one_poem2', function (Blueprint $table) {
            $table->id();
            $table->string('title')->default('')->comment('一言标题');
            $table->string('author')->default('')->comment('作者');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('one_poem2');
    }
}