exception after exception after exception after

This commit is contained in:
Draycia committed 2022-06-08 15:16:19 -07:00
1 parent be51157812
commit 8286f91061
11 files changed
+71 -23

No files matched your search

@@ -1,6 +1,5 @@
CREATE TABLE carbon_users
(
`uuid` UUID NOT NULL PRIMARY KEY,
CREATE TABLE carbon_users (
`id` UUID NOT NULL PRIMARY KEY,
`muted` BOOLEAN,
`deafened` BOOLEAN,
`selectedchannel` varchar(256),
@@ -11,8 +10,8 @@ CREATE TABLE carbon_users
`spying` BOOLEAN
);
CREATE TABLE carbon_ignores
(
`uuid` UUID NOT NULL,
`ignoredplayer` UUID NOT NULL
CREATE TABLE carbon_ignores (
`id` UUID NOT NULL,
`ignoredplayer` UUID NOT NULL,
PRIMARY KEY (id, ignoredplayer)
);
@@ -0,0 +1,11 @@
INSERT INTO carbon_users VALUES (
:uuid,
:muted,
:deafened,
:selectedchannel,
:username,
:displayname,
:lastwhispertarget,
:whisperreplytarget,
:spying
);
@@ -0,0 +1 @@
INSERT INTO carbon_ignores (id, ignoredplayer) VALUES(:id, :name)
@@ -0,0 +1,12 @@
UPDATE carbon_users
SET
id = :id,
muted = :muted,
deafened = :deafened,
selectedchannel = :selectedchannel,
username= :username,
displayname = :displayname,
lastwhispertarget = :lastwhispertarget,
whisperreplytarget = :whisperreplytarget,
spying = :spying
WHERE id = :id;
@@ -1 +1 @@
SELECT ignoredplayer FROM carbon_ignores WHERE (uuid = <uuid>);
SELECT ignoredplayer FROM carbon_ignores WHERE (id = :id);
@@ -1 +1 @@
SELECT * from carbon_users WHERE (uuid = <uuid>);
SELECT * from carbon_users WHERE (id = :id);