19 lines
434 B
Go
19 lines
434 B
Go
package payment
|
|
|
|
import (
|
|
"kra/pkg/database/migration"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
func Migrations() []migration.Step {
|
|
return []migration.Step{
|
|
{ID: "202608200003_payment_schema", Migrate: func(db *gorm.DB) error {
|
|
return migration.CreateMissingTables(db, &paymentOrderPO{})
|
|
}},
|
|
{ID: "202608290001_payment_event_schema", Migrate: func(db *gorm.DB) error {
|
|
return migration.CreateMissingTables(db, &paymentEventPO{})
|
|
}},
|
|
}
|
|
}
|