Add "tracked" column to table "commits"

This commit is contained in:
Joscha 2023-08-05 11:52:39 +02:00
parent b56d0df142
commit 1f66fe0299
3 changed files with 36 additions and 3 deletions

View file

@ -0,0 +1,12 @@
{
"db_name": "SQLite",
"query": "\nWITH RECURSIVE reachable(hash) AS (\n SELECT hash FROM tracked_refs\n UNION\n SELECT parent FROM commit_links\n JOIN reachable ON hash = child\n)\n\nUPDATE commits\nSET tracked = (hash IN reachable)\n",
"describe": {
"columns": [],
"parameters": {
"Right": 0
},
"nullable": []
},
"hash": "6398e5b1dce1142d3460f9d067588bcb42b0be5278ce7524280a4786c8b41786"
}