From dfac0fdcd764fb6487bb1bc9162a4a47c228f1fd Mon Sep 17 00:00:00 2001 From: gzydong Date: Sat, 10 Apr 2021 13:55:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- migrations/2020_11_04_153616_create_group_table.php | 2 -- migrations/2020_11_04_153636_create_group_notice_table.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/migrations/2020_11_04_153616_create_group_table.php b/migrations/2020_11_04_153616_create_group_table.php index 72adda7..9e9eb4d 100644 --- a/migrations/2020_11_04_153616_create_group_table.php +++ b/migrations/2020_11_04_153616_create_group_table.php @@ -28,8 +28,6 @@ class CreateGroupTable extends Migration $table->charset = 'utf8'; $table->collation = 'utf8_general_ci'; $table->engine = 'InnoDB'; - - $table->index(['group_id', 'is_delete', 'is_top', 'updated_at'], 'idx_group_id_is_delete_is_top_updated_at'); }); $prefix = config('databases.default.prefix'); diff --git a/migrations/2020_11_04_153636_create_group_notice_table.php b/migrations/2020_11_04_153636_create_group_notice_table.php index 4130c52..65de7fd 100644 --- a/migrations/2020_11_04_153636_create_group_notice_table.php +++ b/migrations/2020_11_04_153636_create_group_notice_table.php @@ -12,7 +12,7 @@ class CreateGroupNoticeTable extends Migration */ public function up(): void { - Schema::create('users_group_notice', function (Blueprint $table) { + Schema::create('group_notice', function (Blueprint $table) { $table->unsignedInteger('id', true)->comment('群公告ID'); $table->unsignedInteger('group_id')->default(0)->comment('群组ID'); $table->unsignedInteger('creator_id')->default(0)->comment('创建者用户ID');