diff options
Diffstat (limited to 'src/db.lisp')
| -rw-r--r-- | src/db.lisp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db.lisp b/src/db.lisp index 8fab0db..b0159c0 100644 --- a/src/db.lisp +++ b/src/db.lisp | |||
| @@ -29,13 +29,13 @@ | |||
| 29 | (case type | 29 | (case type |
| 30 | (:blacklisted 0) | 30 | (:blacklisted 0) |
| 31 | (:whitelisted 1) | 31 | (:whitelisted 1) |
| 32 | (t (error "Unknown inline bot type ~S" type)))) | 32 | (otherwise (error "Unknown inline bot type ~S" type)))) |
| 33 | 33 | ||
| 34 | (defun integer->inline-bot-type (num) | 34 | (defun integer->inline-bot-type (num) |
| 35 | (case num | 35 | (case num |
| 36 | (0 :blacklisted) | 36 | (0 :blacklisted) |
| 37 | (1 :whitelisted) | 37 | (1 :whitelisted) |
| 38 | (t (error "Unknown inline bot type value ~S" num)))) | 38 | (otherwise (error "Unknown inline bot type value ~S" num)))) |
| 39 | 39 | ||
| 40 | (defun upgrade (db) | 40 | (defun upgrade (db) |
| 41 | (execute-non-query db "CREATE TABLE IF NOT EXISTS version(id INTEGER PRIMARY KEY, version INTEGER)") | 41 | (execute-non-query db "CREATE TABLE IF NOT EXISTS version(id INTEGER PRIMARY KEY, version INTEGER)") |
| @@ -81,4 +81,4 @@ VALUES (?, 'blacklisted'), (?, 'whitelisted')" | |||
| 81 | CREATE TABLE inline_bots ( | 81 | CREATE TABLE inline_bots ( |
| 82 | id INTEGER PRIMARY KEY, | 82 | id INTEGER PRIMARY KEY, |
| 83 | type INTEGER REFERENCES inline_bots_enum(id))")) | 83 | type INTEGER REFERENCES inline_bots_enum(id))")) |
| 84 | (t (error "Unreachable upgrade step reached ~A" new-version)))) | 84 | (otherwise (error "Unreachable upgrade step reached ~A" new-version)))) |