fix(sqlite): fix foreign key row

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-08-13 21:39:31 -03:00
parent e4e9d6a44b
commit 5f28695413

View File

@@ -37,8 +37,8 @@ func (db *SQLiteDB) Prepare() error {
OriginChannelID text,
PRIMARY KEY(ID, ChannelID),
FOREIGN KEY(ChannelID) REFERENCES channels(ID),
FOREIGN KEY(OriginalID) REFERENCES messages(ID),
FOREIGN KEY(OriginalChannelID) REFERENCES channels(ID)
FOREIGN KEY(OriginID) REFERENCES messages(ID),
FOREIGN KEY(OriginChannelID) REFERENCES channels(ID)
);
`)
if err != nil {