mirror of
https://github.com/StarFleetCPTN/GoMFT.git
synced 2026-09-16 03:20:55 +02:00
- Implement concurrent file transfer processing with configurable concurrency - Add new `max_concurrent_transfers` column to transfer configurations - Enhance scheduler to support multi-threaded file transfers - Introduce advanced logging system with rotation and configurable log levels - Update Docker Compose and documentation with new logging configuration options - Modify directory structure to separate data, backups, and logs - Add environment variables for comprehensive logging control - Improve error handling and logging in file transfer processes
20 lines
465 B
Go
20 lines
465 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(),
|
|
}
|
|
|
|
return gormigrate.New(db, gormigrate.DefaultOptions, migrations)
|
|
}
|