diff --git a/bots.sql b/bots.sql index 465b8bb..762950a 100644 --- a/bots.sql +++ b/bots.sql @@ -21,7 +21,7 @@ SET default_tablespace = ''; SET default_table_access_method = heap; -- --- Name: bots; Type: TABLE; Schema: public; Owner: zdqulpzc +-- Name: bots; Type: TABLE; Schema: public; Owner: thisistheusername-replaceme -- CREATE TABLE public.bots ( @@ -34,16 +34,16 @@ CREATE TABLE public.bots ( prefix text, owner_id text, app_id text, - votes integer, + votes bigint, approved boolean, CONSTRAINT can_vote_check CHECK ((((votes > 0) AND approved) OR (votes < 1))) ); -ALTER TABLE public.bots OWNER TO zdqulpzc; +ALTER TABLE public.bots OWNER TO thisistheusername-replaceme; -- --- Data for Name: bots; Type: TABLE DATA; Schema: public; Owner: zdqulpzc +-- Data for Name: bots; Type: TABLE DATA; Schema: public; Owner: thisistheusername-replaceme -- COPY public.bots (name, short_description, long_description, avatar_url, owner, support_server, prefix, owner_id, app_id, votes, approved) FROM stdin; diff --git a/controllers/views.cc b/controllers/views.cc index 38eac1f..2b18b8e 100644 --- a/controllers/views.cc +++ b/controllers/views.cc @@ -43,7 +43,7 @@ Bot deserializeBot(orm::Row row) { sf(owner).as(); sf(support_server).as(); sf(prefix).as(); - sf(votes).as(); + sf(votes).as(); sf(approved).as(); thisbot.owner_id = std::stoul(row["owner_id"].as()); thisbot.app_id = std::stoul(row["app_id"].as()); diff --git a/controllers/views.h b/controllers/views.h index 652a5e9..305de55 100644 --- a/controllers/views.h +++ b/controllers/views.h @@ -7,7 +7,7 @@ using namespace std; struct Bot { string name, short_description, long_description, avatar_url, owner, support_server, prefix; uint64_t owner_id, app_id; - uint32_t votes = 0; + int64_t votes = 0; bool approved = false; };