diff --git a/.sqlx/query-1303a43916e953b75912b86579b1f8674b19720f5c6dfb3ca4c4514480337506.json b/.sqlx/query-1303a43916e953b75912b86579b1f8674b19720f5c6dfb3ca4c4514480337506.json deleted file mode 100644 index 00233ef8..00000000 --- a/.sqlx/query-1303a43916e953b75912b86579b1f8674b19720f5c6dfb3ca4c4514480337506.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE teams SET votes = 0 WHERE id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid" - ] - }, - "nullable": [] - }, - "hash": "1303a43916e953b75912b86579b1f8674b19720f5c6dfb3ca4c4514480337506" -} diff --git a/.sqlx/query-13d99af4c2ed68629061cc0280c4d976702b1c6dfe60db0e9776db8fe721ee44.json b/.sqlx/query-13d99af4c2ed68629061cc0280c4d976702b1c6dfe60db0e9776db8fe721ee44.json deleted file mode 100644 index 8388c60d..00000000 --- a/.sqlx/query-13d99af4c2ed68629061cc0280c4d976702b1c6dfe60db0e9776db8fe721ee44.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE packs SET votes = 0", - "describe": { - "columns": [], - "parameters": { - "Left": [] - }, - "nullable": [] - }, - "hash": "13d99af4c2ed68629061cc0280c4d976702b1c6dfe60db0e9776db8fe721ee44" -} diff --git a/.sqlx/query-d794ffda221b48c5292b79a4f9ab21e1d3e3ca741f4033ef509aa2a8ef5d0e49.json b/.sqlx/query-27c290206d9d2e8f3f186bde9342c2d4f8ac104c258c5be969a4a5eebd3d507e.json similarity index 55% rename from .sqlx/query-d794ffda221b48c5292b79a4f9ab21e1d3e3ca741f4033ef509aa2a8ef5d0e49.json rename to .sqlx/query-27c290206d9d2e8f3f186bde9342c2d4f8ac104c258c5be969a4a5eebd3d507e.json index 71e1cabe..63c35e22 100644 --- a/.sqlx/query-d794ffda221b48c5292b79a4f9ab21e1d3e3ca741f4033ef509aa2a8ef5d0e49.json +++ b/.sqlx/query-27c290206d9d2e8f3f186bde9342c2d4f8ac104c258c5be969a4a5eebd3d507e.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "UPDATE entity_votes SET void = TRUE, void_reason = 'Automated votes reset', voided_at = NOW() WHERE void = false", + "query": "UPDATE entity_votes SET void = TRUE, void_reason = 'Automated votes reset', voided_at = NOW() WHERE void = false AND immutable = false", "describe": { "columns": [], "parameters": { @@ -8,5 +8,5 @@ }, "nullable": [] }, - "hash": "d794ffda221b48c5292b79a4f9ab21e1d3e3ca741f4033ef509aa2a8ef5d0e49" + "hash": "27c290206d9d2e8f3f186bde9342c2d4f8ac104c258c5be969a4a5eebd3d507e" } diff --git a/.sqlx/query-4c12baf50f55ea149db97beb409a46c7451e9fdf1c96645ee0d840de0d60d6f1.json b/.sqlx/query-4c12baf50f55ea149db97beb409a46c7451e9fdf1c96645ee0d840de0d60d6f1.json new file mode 100644 index 00000000..faf662c4 --- /dev/null +++ b/.sqlx/query-4c12baf50f55ea149db97beb409a46c7451e9fdf1c96645ee0d840de0d60d6f1.json @@ -0,0 +1,21 @@ +{ + "db_name": "PostgreSQL", + "query": "INSERT INTO shop_items (id, name, cents, target_types, benefits, created_by, updated_by, duration, description) VALUES ($1, $2, $3, $4, $5, $6, $6, $7, $8)", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text", + "Float8", + "TextArray", + "TextArray", + "Text", + "Int4", + "Text" + ] + }, + "nullable": [] + }, + "hash": "4c12baf50f55ea149db97beb409a46c7451e9fdf1c96645ee0d840de0d60d6f1" +} diff --git a/.sqlx/query-b6651dce79fe21a525a4b1a56fc841973eb1f5d3ed9b52df3b88b19d92eae63b.json b/.sqlx/query-690b721193639ef5f4921ba0e91618d7d5bebe93239fbd3acefa62971f61e243.json similarity index 72% rename from .sqlx/query-b6651dce79fe21a525a4b1a56fc841973eb1f5d3ed9b52df3b88b19d92eae63b.json rename to .sqlx/query-690b721193639ef5f4921ba0e91618d7d5bebe93239fbd3acefa62971f61e243.json index 580f8752..e6096e24 100644 --- a/.sqlx/query-b6651dce79fe21a525a4b1a56fc841973eb1f5d3ed9b52df3b88b19d92eae63b.json +++ b/.sqlx/query-690b721193639ef5f4921ba0e91618d7d5bebe93239fbd3acefa62971f61e243.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "UPDATE entity_votes SET void = TRUE, void_reason = 'Votes (all entities) reset', voided_at = NOW() WHERE target_type = $1", + "query": "UPDATE entity_votes SET void = TRUE, void_reason = 'Votes (all entities) reset', voided_at = NOW() WHERE target_type = $1 AND immutable = false", "describe": { "columns": [], "parameters": { @@ -10,5 +10,5 @@ }, "nullable": [] }, - "hash": "b6651dce79fe21a525a4b1a56fc841973eb1f5d3ed9b52df3b88b19d92eae63b" + "hash": "690b721193639ef5f4921ba0e91618d7d5bebe93239fbd3acefa62971f61e243" } diff --git a/.sqlx/query-84403c93c8b1034a3c51dc64b6b04577733bb0da79874cd97bbc781ae747acc8.json b/.sqlx/query-84403c93c8b1034a3c51dc64b6b04577733bb0da79874cd97bbc781ae747acc8.json deleted file mode 100644 index f172dceb..00000000 --- a/.sqlx/query-84403c93c8b1034a3c51dc64b6b04577733bb0da79874cd97bbc781ae747acc8.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE bots SET votes = 0", - "describe": { - "columns": [], - "parameters": { - "Left": [] - }, - "nullable": [] - }, - "hash": "84403c93c8b1034a3c51dc64b6b04577733bb0da79874cd97bbc781ae747acc8" -} diff --git a/.sqlx/query-8e47602e4ac6f979c3e49675c6f0750f4d7d4ec7e93813838235f3cc39fbcff6.json b/.sqlx/query-8e47602e4ac6f979c3e49675c6f0750f4d7d4ec7e93813838235f3cc39fbcff6.json new file mode 100644 index 00000000..4165f6d3 --- /dev/null +++ b/.sqlx/query-8e47602e4ac6f979c3e49675c6f0750f4d7d4ec7e93813838235f3cc39fbcff6.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT COUNT(*) FROM shop_items WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + null + ] + }, + "hash": "8e47602e4ac6f979c3e49675c6f0750f4d7d4ec7e93813838235f3cc39fbcff6" +} diff --git a/.sqlx/query-586130bd233a234fb2c3ecefb1376136bcad72d950ed1e87c741c3239fba048f.json b/.sqlx/query-9261405e6b3e8a8b6526a486f4216d122a6535ad3569cd2ee6901a1e1a611a2d.json similarity index 86% rename from .sqlx/query-586130bd233a234fb2c3ecefb1376136bcad72d950ed1e87c741c3239fba048f.json rename to .sqlx/query-9261405e6b3e8a8b6526a486f4216d122a6535ad3569cd2ee6901a1e1a611a2d.json index d1c77ca8..c4c3c3dc 100644 --- a/.sqlx/query-586130bd233a234fb2c3ecefb1376136bcad72d950ed1e87c741c3239fba048f.json +++ b/.sqlx/query-9261405e6b3e8a8b6526a486f4216d122a6535ad3569cd2ee6901a1e1a611a2d.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "SELECT id, target_type, position, cents, votes, created_at FROM vote_credit_tiers ORDER BY created_at DESC", + "query": "SELECT id, target_type, position, cents, votes, created_at FROM vote_credit_tiers ORDER BY position ASC", "describe": { "columns": [ { @@ -46,5 +46,5 @@ false ] }, - "hash": "586130bd233a234fb2c3ecefb1376136bcad72d950ed1e87c741c3239fba048f" + "hash": "9261405e6b3e8a8b6526a486f4216d122a6535ad3569cd2ee6901a1e1a611a2d" } diff --git a/.sqlx/query-9b75ec753301f0dfc013e276c39feaa1ca9cbc35e32b761b6f7b6b642c3c15aa.json b/.sqlx/query-9b75ec753301f0dfc013e276c39feaa1ca9cbc35e32b761b6f7b6b642c3c15aa.json deleted file mode 100644 index 1abbfa29..00000000 --- a/.sqlx/query-9b75ec753301f0dfc013e276c39feaa1ca9cbc35e32b761b6f7b6b642c3c15aa.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE teams SET votes = 0", - "describe": { - "columns": [], - "parameters": { - "Left": [] - }, - "nullable": [] - }, - "hash": "9b75ec753301f0dfc013e276c39feaa1ca9cbc35e32b761b6f7b6b642c3c15aa" -} diff --git a/.sqlx/query-60dda0cc18439e0cc90765ac2740f892cf05029ef53656616cb5aa20ebc836cd.json b/.sqlx/query-b6128269f9bf1e4bdaad6169edcebc3a8b053541330f650c7db6b6e52a16b008.json similarity index 53% rename from .sqlx/query-60dda0cc18439e0cc90765ac2740f892cf05029ef53656616cb5aa20ebc836cd.json rename to .sqlx/query-b6128269f9bf1e4bdaad6169edcebc3a8b053541330f650c7db6b6e52a16b008.json index 390d7b75..4dca7e6f 100644 --- a/.sqlx/query-60dda0cc18439e0cc90765ac2740f892cf05029ef53656616cb5aa20ebc836cd.json +++ b/.sqlx/query-b6128269f9bf1e4bdaad6169edcebc3a8b053541330f650c7db6b6e52a16b008.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "UPDATE packs SET votes = 0 WHERE url = $1", + "query": "DELETE FROM shop_items WHERE id = $1", "describe": { "columns": [], "parameters": { @@ -10,5 +10,5 @@ }, "nullable": [] }, - "hash": "60dda0cc18439e0cc90765ac2740f892cf05029ef53656616cb5aa20ebc836cd" + "hash": "b6128269f9bf1e4bdaad6169edcebc3a8b053541330f650c7db6b6e52a16b008" } diff --git a/.sqlx/query-c9204bfcd7d8aa616a89a8eb5e58968d5e480ab3994adc8860537fefe3a40c5d.json b/.sqlx/query-c9204bfcd7d8aa616a89a8eb5e58968d5e480ab3994adc8860537fefe3a40c5d.json deleted file mode 100644 index d2618249..00000000 --- a/.sqlx/query-c9204bfcd7d8aa616a89a8eb5e58968d5e480ab3994adc8860537fefe3a40c5d.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE servers SET votes = 0", - "describe": { - "columns": [], - "parameters": { - "Left": [] - }, - "nullable": [] - }, - "hash": "c9204bfcd7d8aa616a89a8eb5e58968d5e480ab3994adc8860537fefe3a40c5d" -} diff --git a/.sqlx/query-d955f254bcd52586c0ac9a2f8cbef59b2eca4e2771b288a688dd481828301664.json b/.sqlx/query-d955f254bcd52586c0ac9a2f8cbef59b2eca4e2771b288a688dd481828301664.json deleted file mode 100644 index 60a05a1b..00000000 --- a/.sqlx/query-d955f254bcd52586c0ac9a2f8cbef59b2eca4e2771b288a688dd481828301664.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE servers SET votes = 0 WHERE server_id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "d955f254bcd52586c0ac9a2f8cbef59b2eca4e2771b288a688dd481828301664" -} diff --git a/.sqlx/query-e1dc3bfa288bef1e46b9958067f9fe01feeb13c55d860c418785dfb5e231c2f6.json b/.sqlx/query-e1dc3bfa288bef1e46b9958067f9fe01feeb13c55d860c418785dfb5e231c2f6.json deleted file mode 100644 index 2e7e74b4..00000000 --- a/.sqlx/query-e1dc3bfa288bef1e46b9958067f9fe01feeb13c55d860c418785dfb5e231c2f6.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "UPDATE bots SET votes = 0 WHERE bot_id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "e1dc3bfa288bef1e46b9958067f9fe01feeb13c55d860c418785dfb5e231c2f6" -} diff --git a/.sqlx/query-f86060ffead3260a9a650a7a5b0e8aa5dd7ec9233436f0076a0e55732749e7c7.json b/.sqlx/query-f86060ffead3260a9a650a7a5b0e8aa5dd7ec9233436f0076a0e55732749e7c7.json new file mode 100644 index 00000000..4340b01e --- /dev/null +++ b/.sqlx/query-f86060ffead3260a9a650a7a5b0e8aa5dd7ec9233436f0076a0e55732749e7c7.json @@ -0,0 +1,21 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE shop_items SET name = $1, cents = $2, target_types = $3, benefits = $4, last_updated = NOW(), updated_by = $5, duration = $6, description = $7 WHERE id = $8", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Float8", + "TextArray", + "TextArray", + "Text", + "Int4", + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "f86060ffead3260a9a650a7a5b0e8aa5dd7ec9233436f0076a0e55732749e7c7" +} diff --git a/.sqlx/query-fd282481bf177d1bdfbc04ac1e965668dabe9cf19b6e6c540fd073cf8ba79702.json b/.sqlx/query-fd282481bf177d1bdfbc04ac1e965668dabe9cf19b6e6c540fd073cf8ba79702.json new file mode 100644 index 00000000..e718dab6 --- /dev/null +++ b/.sqlx/query-fd282481bf177d1bdfbc04ac1e965668dabe9cf19b6e6c540fd073cf8ba79702.json @@ -0,0 +1,80 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT id, name, cents, target_types, benefits, created_at, last_updated, created_by, updated_by, duration, description FROM shop_items ORDER BY created_at DESC", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "cents", + "type_info": "Float8" + }, + { + "ordinal": 3, + "name": "target_types", + "type_info": "TextArray" + }, + { + "ordinal": 4, + "name": "benefits", + "type_info": "TextArray" + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 6, + "name": "last_updated", + "type_info": "Timestamptz" + }, + { + "ordinal": 7, + "name": "created_by", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "updated_by", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "duration", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "description", + "type_info": "Text" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "fd282481bf177d1bdfbc04ac1e965668dabe9cf19b6e6c540fd073cf8ba79702" +}