mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 06:28:54 +00:00
exception after exception after exception after
This commit is contained in:
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);
|
||||
Reference in new issue
Block a user