mirror of
https://github.com/StarFleetCPTN/GoMFT.git
synced 2026-09-20 13:30:51 +02:00
- Update .gitignore to include new provider files and ensure proper tracking. - Refactor job and config forms to support multiple configuration selections, improving user experience. - Implement logic to handle the initialization of skipProcessedFiles with a default value. - Add new provider form templates for better organization and management of source and destination configurations. - Enhance tests for provider forms and job configurations to ensure robust functionality. - Introduce nullable handling for skipProcessedFiles in the database schema and update related migrations. - Improve error handling and validation in job creation and editing processes.
22 lines
532 B
Go
22 lines
532 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{
|
|
// ... existing migrations
|
|
AddDeleteAfterTransferColumn(),
|
|
AddCloudStorageFields(),
|
|
AddSkipProcessedFilesColumn(),
|
|
AddMaxConcurrentTransfersColumn(),
|
|
AddMultiConfigSupport(),
|
|
UpdateSkipProcessedFilesToNullable(),
|
|
}
|
|
|
|
return gormigrate.New(db, gormigrate.DefaultOptions, migrations)
|
|
}
|