mirror of
https://github.com/StarFleetCPTN/GoMFT.git
synced 2026-10-08 15:27:28 +02:00
- Deleted the migration that updated the use_builtin_auth field to separate source and destination fields. - Introduced a new migration to update source_type and destination_type from 'google_drive' to 'gdrive' in transfer_configs.
17 lines
346 B
Go
17 lines
346 B
Go
package migrations
|
|
|
|
import (
|
|
"github.com/go-gormigrate/gormigrate/v2"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// InitMigrations initializes the migrations
|
|
func InitMigrations(db *gorm.DB) *gormigrate.Gormigrate {
|
|
migrations := []*gormigrate.Migration{
|
|
InitialSchema(),
|
|
UpdateGDriveType(),
|
|
}
|
|
|
|
return gormigrate.New(db, gormigrate.DefaultOptions, migrations)
|
|
}
|