Skip to content

Offer SQL migrate function for timer/locker/eventbus #42

@ealyn

Description

@ealyn

I've using 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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions