package migrate

import (
	mod "github.com/tidbcloud/devops/models/kernelimage"

	"gorm.io/gorm"
)

// This migration adds the repository/version lookup index used by the
// image-scoped M x N projection. Legacy component columns stay in place so the
// rollout is non-destructive; new records leave them empty.
var _ = AddMigrateRecord(
	"202608071000",
	func(db *gorm.DB) error {
		return db.AutoMigrate(&mod.Release{})
	},
)
