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');