From bd74717e10fb36e19893c15941876b2383b94714 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Thu, 6 Feb 2025 00:05:57 +0100 Subject: Add DELETE command for review Only the owner or a maintainer of the project can remove a review. Removing a review also removes the git branch. Only reviews that are either draft or dropped can be removed. --- ...f6e68a116e9f1b67bc75eb459a45d18f9c67e03e34.json | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 server/.sqlx/query-7715484cf01394aad53517f6e68a116e9f1b67bc75eb459a45d18f9c67e03e34.json (limited to 'server/.sqlx/query-7715484cf01394aad53517f6e68a116e9f1b67bc75eb459a45d18f9c67e03e34.json') diff --git a/server/.sqlx/query-7715484cf01394aad53517f6e68a116e9f1b67bc75eb459a45d18f9c67e03e34.json b/server/.sqlx/query-7715484cf01394aad53517f6e68a116e9f1b67bc75eb459a45d18f9c67e03e34.json new file mode 100644 index 0000000..1cf179c --- /dev/null +++ b/server/.sqlx/query-7715484cf01394aad53517f6e68a116e9f1b67bc75eb459a45d18f9c67e03e34.json @@ -0,0 +1,47 @@ +{ + "db_name": "MySQL", + "query": "SELECT state,branch,owner FROM reviews WHERE project=? AND id=?", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "state", + "type_info": { + "type": "Tiny", + "flags": "NOT_NULL | UNSIGNED", + "char_set": 63, + "max_size": 3 + } + }, + { + "ordinal": 1, + "name": "branch", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | NO_DEFAULT_VALUE", + "char_set": 224, + "max_size": 4096 + } + }, + { + "ordinal": 2, + "name": "owner", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | MULTIPLE_KEY | NO_DEFAULT_VALUE", + "char_set": 224, + "max_size": 512 + } + } + ], + "parameters": { + "Right": 2 + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "7715484cf01394aad53517f6e68a116e9f1b67bc75eb459a45d18f9c67e03e34" +} -- cgit v1.2.3-70-g09d2