bytedance / bytedance/dddfirework
Offer SQL migrate function for timer/locker/eventbus
Open
- Dominant language
- Go
- Stars
- 75
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
I've using [gorm](https://github.com/go-gorm/gorm).DB AutoMigrate:
```
err := db.AutoMigrate(&mysql.EventPO{}, &mysql.Transaction{}, &mysql.ServicePO{}, &lock.ResourceLock{}, &dtimer.TimerJob{})
```
But newer gorm version v1.25.12 have AutoMigrate bug: AutoMigrate will error at second run
> Error 1091 (42000): Can't DROP 'uni_ddd_timer_key'; check that column/key exists`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.