Add migration fixes

This commit is contained in:
2020-10-09 16:06:31 +02:00
parent 011619d3c3
commit aea74bef27
8 changed files with 23 additions and 7 deletions

View File

@@ -33,6 +33,10 @@ func DbMainpage(pool *pgxpool.Pool) gin.H {
log.Println(err.Error())
}
persons = append(persons, models.Person{
Id: -1,
Name: "-- Auswählen --",
})
var person models.Person
for wperson.Next() {
err = wperson.Scan(&person.Id, &person.Name)