master
cody 4 months ago
parent d0458d6359
commit 01903fd33d

@ -13,8 +13,8 @@ return new class extends Migration {
public function up() public function up()
{ {
Schema::table('users', function (Blueprint $table) { Schema::table('users', function (Blueprint $table) {
// $table->string('no')->nullable()->comment('学号'); $table->string('no')->nullable()->comment('学号');
// $table->integer('company_id')->nullable()->comment('企业id'); $table->integer('company_id')->nullable()->comment('企业id');
$table->date('birthday')->nullable()->comment('生日')->change(); $table->date('birthday')->nullable()->comment('生日')->change();
// no字段唯一索引 // no字段唯一索引
$table->unique('no'); $table->unique('no');

Loading…
Cancel
Save