algorand / algorand/go-algorand

Update trackerDB schema migration

Abierto
#4,195 1 comentario 0 reacciones 1 asignado Reclamado por @algorandskiy Ver en GitHub
blocked Low Priority Team Carbon-11 tech debt
Lenguaje dominante
Go
Estrellas
1.4k
Forks
537
Merge medio
1 d 7 h
PR fusionados (30 d)
18

Descripción

Probably not useful for this PR, but maybe in the future it would be.

There are some utilities added with the participation registry to fill in the boilerplate for these sorts of migrations. You pass an array of `Migration` functions and it handles the versioning and calling the correct subset of migration handlers.

https://github.com/algorand/go-algorand/blob/master/util/db/initialize.go#L34

At one point I converted the accountDB to use the new utilities, it was mostly straightforward:
https://github.com/winder/go-algorand/pull/3/files#

_Originally posted by @winder in https://github.com/algorand/go-algorand/pull/4003#discussion_r898450194_

Not needed after switching from SQLite to KV.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.