diff options
author | S7evinK <tfaelligen@gmail.com> | 2020-10-09 10:17:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 09:17:23 +0100 |
commit | 1cd525ef0d7b6209232f93c4d0527a0fccfcdb4f (patch) | |
tree | e2260f7204f22ae0acc18e270b18e19b8d1f7f8e /cmd | |
parent | c4c8bfd0270f3d7009f0fb7c953a26e2cb65442d (diff) |
Extend device_devices table (#1471)
* Add last_used_ts and IP to database
* Add migrations
* Rename column
Prepare statements
* Add interface method and implement it
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
* Rename struct fields
* Add user_agent to database
* Add userAgent to registration calls
* Add missing "IF NOT EXISTS"
* use txn writer
* Add UserAgent to Device
Co-authored-by: Kegsay <kegan@matrix.org>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/create-account/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/create-account/main.go b/cmd/create-account/main.go index 73e223d6..a9bd9279 100644 --- a/cmd/create-account/main.go +++ b/cmd/create-account/main.go @@ -92,7 +92,7 @@ func main() { } device, err := deviceDB.CreateDevice( - context.Background(), *username, nil, *accessToken, nil, + context.Background(), *username, nil, *accessToken, nil, "127.0.0.1", "", ) if err != nil { fmt.Println(err.Error()) |