[GH-ISSUE #212] [Bug] 一个数据库的问题 #132

Closed
opened 2026-03-03 01:01:06 +03:00 by kerem · 3 comments
Owner

Originally created by @fudiwei on GitHub (Oct 17, 2024).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/212

deploymentsdomain 这列,从字面意思上看应该存储的是“域名”(即表 domainsdomain 列),但现在存储的却是“邮箱”(即表 domainsemail 列)。

见下图:

image

请问这是故意设计成这样的吗?

Originally created by @fudiwei on GitHub (Oct 17, 2024). Original GitHub issue: https://github.com/certimate-go/certimate/issues/212 表 `deployments` 的 `domain` 这列,从字面意思上看应该存储的是“域名”(即表 `domains` 的 `domain` 列),但现在存储的却是“邮箱”(即表 `domains` 的 `email` 列)。 见下图: ![image](https://github.com/user-attachments/assets/33e85d39-c949-4180-96de-81c765ba6f6b) 请问这是故意设计成这样的吗?
kerem 2026-03-03 01:01:06 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@usual2970 commented on GitHub (Oct 17, 2024):

这里的 domain 对应的就是 domains

这是 pocketbase 的设计,关系型的字段其实在底层存储的是 id(string),设置关系的时候没法指定显示哪个字段,pocketbase在渲染列表的时候自动选择了,他认为有意义的字段,比如 name、title。它这里选择了 email。

<!-- gh-comment-id:2419858714 --> @usual2970 commented on GitHub (Oct 17, 2024): 这里的 domain 对应的就是 domains 这是 pocketbase 的设计,关系型的字段其实在底层存储的是 id(string),设置关系的时候没法指定显示哪个字段,pocketbase在渲染列表的时候自动选择了,他认为有意义的字段,比如 name、title。它这里选择了 email。
Author
Owner

@fudiwei commented on GitHub (Oct 17, 2024):

明白了,谢谢

<!-- gh-comment-id:2419874457 --> @fudiwei commented on GitHub (Oct 17, 2024): 明白了,谢谢
Author
Owner

@usual2970 commented on GitHub (Oct 17, 2024):

WX20241017-233533

<!-- gh-comment-id:2419885154 --> @usual2970 commented on GitHub (Oct 17, 2024): ![WX20241017-233533](https://github.com/user-attachments/assets/405e938e-7853-41a0-a0c3-0465460b8658)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#132
No description provided.