删除私信分支链路
This commit is contained in:
@@ -108,37 +108,6 @@ trait DBMigratorPart2 {
|
||||
) {$charset_collate};";
|
||||
dbDelta($sql_notification);
|
||||
|
||||
// ---------- 6. 私信会话 ----------
|
||||
$sql_conversation = "CREATE TABLE {$prefix}aksrt_conversation (
|
||||
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
user_a BIGINT UNSIGNED NOT NULL,
|
||||
user_b BIGINT UNSIGNED NOT NULL,
|
||||
last_message VARCHAR(255) DEFAULT '',
|
||||
last_message_at DATETIME DEFAULT NULL,
|
||||
unread_a INT NOT NULL DEFAULT 0,
|
||||
unread_b INT NOT NULL DEFAULT 0,
|
||||
created_at DATETIME NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
UNIQUE KEY uniq_pair (user_a, user_b),
|
||||
KEY idx_user_a (user_a),
|
||||
KEY idx_user_b (user_b),
|
||||
KEY idx_last_msg (last_message_at)
|
||||
) {$charset_collate};";
|
||||
dbDelta($sql_conversation);
|
||||
|
||||
// ---------- 7. 私信消息 ----------
|
||||
$sql_conv_message = "CREATE TABLE {$prefix}aksrt_conversation_message (
|
||||
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
conversation_id BIGINT UNSIGNED NOT NULL,
|
||||
sender_id BIGINT UNSIGNED NOT NULL,
|
||||
content TEXT NOT NULL,
|
||||
created_at DATETIME NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY idx_conv_time (conversation_id, created_at),
|
||||
KEY idx_sender (sender_id)
|
||||
) {$charset_collate};";
|
||||
dbDelta($sql_conv_message);
|
||||
|
||||
// ---------- 8. 订单表 ----------
|
||||
$sql_order = "CREATE TABLE {$prefix}aksrt_order (
|
||||
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
|
||||
Reference in New Issue
Block a user