mirror of
https://github.com/StarFleetCPTN/GoMFT.git
synced 2026-09-20 13:30:51 +02:00
- Add Google Drive as a source and destination option in the configuration forms. - Implement Google Drive authentication flow and token management. - Update job and configuration handlers to support Google Drive-specific settings. - Enhance UI components to include Google Drive configuration templates. - Introduce new tests for Google Drive integration and ensure proper handling of authentication and configuration. - Update database migrations to accommodate new fields related to Google Drive configurations.
24 lines
588 B
Go
24 lines
588 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(),
|
|
AddWebhookSupport(),
|
|
AddGoogleDriveAuthenticated(),
|
|
}
|
|
|
|
return gormigrate.New(db, gormigrate.DefaultOptions, migrations)
|
|
}
|