summaryrefslogtreecommitdiff
path: root/model/mysql/queries.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/mysql/queries.go')
-rw-r--r--model/mysql/queries.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/model/mysql/queries.go b/model/mysql/queries.go
index 7d7b860..e579df7 100644
--- a/model/mysql/queries.go
+++ b/model/mysql/queries.go
@@ -20,6 +20,7 @@ const (
qInsertJob
qInsertUser
qSetChronos
+ qSetLocation
qEnd
)
@@ -48,4 +49,5 @@ var queries = map[int]string{
qInsertJob: "INSERT INTO `jobs` (`user`, `subject`, `content`, `next`, `chronos`) VALUES (?, ?, ?, ?, ?)",
qInsertUser: "INSERT INTO `users` (`email`, `passwd`, `location`, `active`, `activationcode`, `added`) VALUES (?, ?, ?, ?, ?, ?)",
qSetChronos: "UPDATE `jobs` SET `chronos` = ? WHERE `id` = ?",
+ qSetLocation: "UPDATE `users` SET `location` = ? WHERE `id` = ?",
}