优化发布群租客清退与历史消息
This commit is contained in:
@@ -54,6 +54,11 @@ WHERE g.code IN ('owner_onboarding', 'renter_handoff')
|
||||
AND r.code = 'cs'
|
||||
AND au.status = 'active';
|
||||
|
||||
INSERT INTO system_configs (`key`, `value`, description) VALUES
|
||||
('chat.renter_retention_days_after_order_end', '5', '订单结束后租客保留在发布群的天数(3-7)')
|
||||
ON DUPLICATE KEY UPDATE
|
||||
description = VALUES(description);
|
||||
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
@@ -65,5 +70,6 @@ DELETE rp FROM role_permissions rp
|
||||
JOIN permissions p ON p.id = rp.permission_id
|
||||
WHERE p.code = 'chat:manage';
|
||||
DELETE FROM permissions WHERE code = 'chat:manage';
|
||||
DELETE FROM system_configs WHERE `key` = 'chat.renter_retention_days_after_order_end';
|
||||
|
||||
-- +goose StatementEnd
|
||||
|
||||
Reference in New Issue
Block a user