summaryrefslogtreecommitdiff
path: root/irc/db.rkt
diff options
context:
space:
mode:
authortilpner2018-08-12 21:11:14 +0200
committertilpner2018-08-12 21:11:14 +0200
commit0ec6eacee4fb5b8f0992f8be557f14816f558c22 (patch)
tree8d10c3a3b2f8b7248e8f2abba7c9e2b3079ef1c0 /irc/db.rkt
parent76561ca7b1ad923967af37da691c55bd8f8219e8 (diff)
downloadmeep-0ec6eacee4fb5b8f0992f8be557f14816f558c22.tar.gz
meep-0ec6eacee4fb5b8f0992f8be557f14816f558c22.tar.xz
meep-0ec6eacee4fb5b8f0992f8be557f14816f558c22.zip
Add missing primary key constraints to channels, network tables
Diffstat (limited to 'irc/db.rkt')
-rw-r--r--irc/db.rkt6
1 files changed, 4 insertions, 2 deletions
diff --git a/irc/db.rkt b/irc/db.rkt
index 5cba0d3..d2700b1 100644
--- a/irc/db.rkt
+++ b/irc/db.rkt
@@ -18,9 +18,11 @@
(create-table #:if-not-exists channels
#:columns [name varchar #:not-null]
[autojoin boolean #:not-null]
- [data varchar #:not-null]))
+ [data varchar #:not-null]
+ #:constraints (primary-key name)))
(query-exec (current-database)
(create-table #:if-not-exists network
#:columns [name varchar #:not-null]
- [data varchar #:not-null])))
+ [data varchar #:not-null]
+ #:constraints (primary-key name))))