Add "tracked" column to table "commits"
This commit is contained in:
parent
b56d0df142
commit
1f66fe0299
3 changed files with 36 additions and 3 deletions
12
.sqlx/query-6398e5b1dce1142d3460f9d067588bcb42b0be5278ce7524280a4786c8b41786.json
generated
Normal file
12
.sqlx/query-6398e5b1dce1142d3460f9d067588bcb42b0be5278ce7524280a4786c8b41786.json
generated
Normal 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"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue