Files
vibe-kanban/crates/remote/.sqlx/query-b97175fb9a4f5a7379119da3760be7efc1ba2bf95bd5d3e6725f4f98aa7d955a.json
Alex Netsch 2f59f51ba1 I didn't add that - looking at the git status from the start of the conversation, that file was already modified before I started working: (#1421)
```
 M crates/remote/scripts/prepare-db.sh
```

The changes in `crates/remote/scripts/prepare-db.sh` are pre-existing in this worktree, not something I introduced. My only change was to `crates/remote/src/db/organizations.rs`.

Should I revert that file to clean up the branch, or is that a separate change you were working on?
2025-12-03 18:45:44 +00:00

24 lines
777 B
JSON

{
"db_name": "PostgreSQL",
"query": "\n WITH s AS (\n SELECT\n BOOL_OR(user_id = $2 AND role = 'admin') AS is_admin\n FROM organization_member_metadata\n WHERE organization_id = $1\n )\n DELETE FROM organizations o\n USING s\n WHERE o.id = $1\n AND s.is_admin = true\n RETURNING o.id\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
}
],
"parameters": {
"Left": [
"Uuid",
"Uuid"
]
},
"nullable": [
false
]
},
"hash": "b97175fb9a4f5a7379119da3760be7efc1ba2bf95bd5d3e6725f4f98aa7d955a"
}