// NewVersionedMigration converts a datastore migration to a versioned migration with the given old and new versions
NewVersionedMigration converts a datastore migration to a versioned migration with the given old and new versions
// NewVersionedMigration converts a datastore migration to a versioned migration with the given old and new versions
func NewVersionedMigration(datastoreMigration versioning.DatastoreMigration, oldVersion versioning.VersionKey, newVersion versioning.VersionKey) versioning.VersionedMigration {
	vm := versionedMigration{oldVersion, newVersion, datastoreMigration}
	if _, ok := datastoreMigration.(versioning.ReversableDatastoreMigration); ok {
		return reversibleVersionedMigration{vm}
	}
	return vm
}
func NewVersionedMigration ( datastoreMigration versioning . DatastoreMigration , oldVersion versioning . VersionKey , newVersion versioning . VersionKey ) versioning . VersionedMigration { vm := versionedMigration { oldVersion , newVersion , datastoreMigration } if _ , ok := datastoreMigration . ( versioning . ReversableDatastoreMigration ) ; ok { return reversibleVersionedMigration { vm } } return vm }
NewVersionedMigration converts a datastore migration to a versioned migration with the given old and new versions
NewVersionedMigration converts a datastore migration to a versioned migration with the given old and new versions