[GH-ISSUE #35] default字段不生效 #20

Open
opened 2026-03-02 04:05:21 +03:00 by kerem · 0 comments
Owner

Originally created by @Vc-great on GitHub (Apr 23, 2024).
Original GitHub issue: https://github.com/findyourmagic/dber/issues/35

问题:

  1. 导入DBML 默认值不生效
  2. 手动添加默认值,导出SQL,默认值为空

DBML:
Table follows {
created_at timestamp [default: "CURRENT_TIMESTAMP"]
}

image
image

Originally created by @Vc-great on GitHub (Apr 23, 2024). Original GitHub issue: https://github.com/findyourmagic/dber/issues/35 问题: 1. 导入DBML 默认值不生效 2. 手动添加默认值,导出SQL,默认值为空 DBML: Table follows { created_at timestamp [default: "CURRENT_TIMESTAMP"] } ![image](https://github.com/findyourmagic/dber/assets/30901633/f145c961-c0ae-4dea-844c-e0c37af295ad) ![image](https://github.com/findyourmagic/dber/assets/30901633/edfcd318-806d-46d3-a33d-6bb983de4e0f)
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/dber#20
No description provided.