diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-30 23:16:13 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-30 23:16:13 -0500 |
commit | 73b0f0c6b2c74c38c5312479d38fa1f44091b3a1 (patch) | |
tree | 615a60d52ad4408792abf24d3421c32a58e57752 | |
parent | 104f3bf90610d5d8138b52f4a107982b988316e9 (diff) | |
download | abaddon-portaudio-73b0f0c6b2c74c38c5312479d38fa1f44091b3a1.tar.gz abaddon-portaudio-73b0f0c6b2c74c38c5312479d38fa1f44091b3a1.zip |
fix the members table
-rw-r--r-- | discord/store.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/discord/store.cpp b/discord/store.cpp index ef23eca..07e6a32 100644 --- a/discord/store.cpp +++ b/discord/store.cpp @@ -692,14 +692,15 @@ bool Store::CreateTables() { constexpr const char *create_members = R"( CREATE TABLE IF NOT EXISTS members ( - user_id INTEGER PRIMARY KEY, + user_id INTEGER NOT NULL, guild_id INTEGER NOT NULL, nickname TEXT, roles TEXT NOT NULL, /* json */ joined_at TEXT NOT NULL, premium_since TEXT, deaf BOOL NOT NULL, - mute BOOL NOT NULL + mute BOOL NOT NULL, + PRIMARY KEY(user_id, guild_id) ) )"; |