Support for multiple TXT records per subdomain (#29)

* Support for multiple TXT records per subdomain and database upgrade functionality

* Linter fixes

* Make sure the database upgrade routine works for PostgreSQL

* Move subdomain query outside of the upgrade transaction
This commit is contained in:
Joona Hoikkala
2018-01-22 09:53:07 +02:00
committed by GitHub
parent ba695134ce
commit 733245fb3d
6 changed files with 199 additions and 71 deletions

View File

@ -36,6 +36,8 @@ func main() {
if err != nil {
log.Errorf("Could not open database [%v]", err)
os.Exit(1)
} else {
log.Info("Connected to database")
}
DB = newDB
defer DB.Close()