mirror of
https://github.com/StarFleetCPTN/GoMFT.git
synced 2026-09-13 10:00:45 +02:00
- Add webhook notification settings to job configuration, allowing users to enable notifications for job success and failure. - Implement webhook payload structure and authentication using HMAC-SHA256 for secure communication. - Enhance the admin tools with a log viewer and system management features, including database backup and log file access. - Update README documentation to include details on webhook integration and admin tools. - Introduce comprehensive tests for webhook functionality, ensuring correct payload delivery and header validation. - Add database migrations to support new webhook fields in job configurations.
23 lines
555 B
Go
23 lines
555 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(),
|
|
}
|
|
|
|
return gormigrate.New(db, gormigrate.DefaultOptions, migrations)
|
|
}
|