Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

初始话数据库脚本 #79

Open
Ants24 opened this issue Jan 13, 2025 · 2 comments
Open

初始话数据库脚本 #79

Ants24 opened this issue Jan 13, 2025 · 2 comments

Comments

@Ants24
Copy link

Ants24 commented Jan 13, 2025

我需要在migrate表结构的时候,需要初始化一些数据,执行内容放在什么位置比较好?

@codingcn
Copy link
Member

直接放server/migration.go然后去调用svc,逻辑多的话可以创建个internal/migrate目录,参考task和job

@jiangnanora
Copy link

task和job和有什么区别啊?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants