fix(db): create table queries syntax error
This commit is contained in:
@@ -14,7 +14,7 @@ type Channel struct {
|
||||
}
|
||||
|
||||
const channelCreate = `
|
||||
CREATE IF NOT EXISTS channels (
|
||||
CREATE TABLE IF NOT EXISTS channels (
|
||||
GuildID text NOT NULL,
|
||||
ID text NOT NULL,
|
||||
Language text NOT NULL,
|
||||
|
||||
@@ -5,7 +5,7 @@ type Guild struct {
|
||||
}
|
||||
|
||||
const guildCreate = `
|
||||
CREATE IF NOT EXISTS guilds (
|
||||
CREATE TABLE IF NOT EXISTS guilds (
|
||||
ID text NOT NULL,
|
||||
PRIMARY KEY(ID)
|
||||
);
|
||||
|
||||
@@ -15,7 +15,7 @@ type Message struct {
|
||||
}
|
||||
|
||||
const messageCreate = `
|
||||
CREATE IF NOT EXISTS messages (
|
||||
CREATE TABLE IF NOT EXISTS messages (
|
||||
GuildID text NOT NULL,
|
||||
ChannelID text NOT NULL,
|
||||
ID text NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user