chore(tfstated): change database state id and version id formats to uuidv7
This commit is contained in:
parent
169e2d0d9d
commit
6fd1663d8c
9 changed files with 73 additions and 57 deletions
|
@ -7,7 +7,6 @@ import (
|
|||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
||||
"strconv"
|
||||
|
||||
"git.adyxax.org/adyxax/tfstated/pkg/database"
|
||||
"git.adyxax.org/adyxax/tfstated/pkg/model"
|
||||
|
@ -87,7 +86,7 @@ func handleStatesPOST(db *database.DB) http.Handler {
|
|||
})
|
||||
return
|
||||
}
|
||||
destination := path.Join("/version", strconv.Itoa(version.Id))
|
||||
destination := path.Join("/version", version.Id.String())
|
||||
http.Redirect(w, r, destination, http.StatusFound)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue