fix(db): create table queries syntax error

This commit is contained in:
Guz
2024-11-18 09:36:33 -03:00
parent 84a847f3b0
commit ac54384a91
3 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -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)
);

View File

@@ -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,