feat:修改对话列表数据表索引

main
gzydong 2021-10-27 21:05:53 +08:00
parent 39c4a8e3eb
commit 8f240806ef
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class CreateTalkListTable extends Migration
$table->collation = 'utf8_general_ci';
$table->engine = 'InnoDB';
$table->index(['user_id', 'receiver_id', 'talk_type'], 'idx_user_id_receiver_id_talk_type');
$table->unique(['user_id', 'receiver_id', 'talk_type'], 'uk_user_id_receiver_id_talk_type');
$table->comment('用户聊天列表');
});
}