diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-09-15 12:53:11 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-09-15 12:53:11 +0200 |
commit | 819a2e2c9b15e5167f8af3736905569949306c94 (patch) | |
tree | c359490b71fd090c9a3033905e6f32640f67ced3 /model/mysql/queries.go | |
parent | c0a06609919d09fbcb6326ff69cc455dd13506ef (diff) | |
download | mailremind-819a2e2c9b15e5167f8af3736905569949306c94.tar.gz mailremind-819a2e2c9b15e5167f8af3736905569949306c94.tar.bz2 mailremind-819a2e2c9b15e5167f8af3736905569949306c94.zip |
Changed weird internal terminology
Diffstat (limited to 'model/mysql/queries.go')
-rw-r--r-- | model/mysql/queries.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/model/mysql/queries.go b/model/mysql/queries.go index e579df7..1aa6853 100644 --- a/model/mysql/queries.go +++ b/model/mysql/queries.go @@ -19,14 +19,14 @@ const ( qJobsBefore qInsertJob qInsertUser - qSetChronos + qSetSchedule qSetLocation qEnd ) const ( qfragSelUser = "SELECT `id`, `email`, `passwd`, `location`, `active`, `activationcode`, `added` FROM `users` " - qfragSelJob = "SELECT `id`, `user`, `subject`, `content`, `next`, `chronos` FROM `jobs` " + qfragSelJob = "SELECT `id`, `user`, `subject`, `content`, `next`, `schedule` FROM `jobs` " ) var queries = map[int]string{ @@ -46,8 +46,8 @@ var queries = map[int]string{ qSetNext: "UPDATE `jobs` SET `next` = ? WHERE `id` = ?", qDelJob: "DELETE FROM `jobs` WHERE `id` = ?", qJobsBefore: qfragSelJob + "WHERE `next` <= ?", - qInsertJob: "INSERT INTO `jobs` (`user`, `subject`, `content`, `next`, `chronos`) VALUES (?, ?, ?, ?, ?)", + qInsertJob: "INSERT INTO `jobs` (`user`, `subject`, `content`, `next`, `schedule`) VALUES (?, ?, ?, ?, ?)", qInsertUser: "INSERT INTO `users` (`email`, `passwd`, `location`, `active`, `activationcode`, `added`) VALUES (?, ?, ?, ?, ?, ?)", - qSetChronos: "UPDATE `jobs` SET `chronos` = ? WHERE `id` = ?", + qSetSchedule: "UPDATE `jobs` SET `schedule` = ? WHERE `id` = ?", qSetLocation: "UPDATE `users` SET `location` = ? WHERE `id` = ?", } |