mirror of
https://github.com/StarFleetCPTN/GoMFT.git
synced 2026-09-16 11:30:49 +02:00
- Introduce Google Photos as a source and destination option in the configuration forms. - Implement authentication handling and configuration management for Google Photos. - Update database schema and migrations to include new fields related to Google Photos. - Enhance UI components to support Google Photos-specific settings and forms. - Add tests for Google Photos integration, ensuring proper functionality and authentication flow. - Limit concurrent transfers for Google Photos to ensure compliance with API restrictions.
25 lines
616 B
Go
25 lines
616 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(),
|
|
AddGooglePhotosSupport(),
|
|
}
|
|
|
|
return gormigrate.New(db, gormigrate.DefaultOptions, migrations)
|
|
}
|