This repository has been archived by the owner on Jun 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
求SQL语句 #2
Comments
不需要建表语句,gorm (AutoMigrate )自动迁移。 |
自动迁移会报错 |
项目目前只有后端没有前端是吧! |
报错发下我看看,是的只有后端没有前端,后端基本上也很多查询的功能都没写,我有一个rust版的写的比较全。 |
报错我解决了,我用go的结构体,让gpt反向生成sql,写完了,报错大概就是表和表之间有依赖,但是建表的顺序可能有问题,导致这个表要用那个表的键,而那个表没建好 |
原来是rust佬 |
可能是AutoMigrate 里面的结构体不全,改一下迁移顺序补充下就行了。 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
有没有建表的sql语句啊?
The text was updated successfully, but these errors were encountered: