mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: add upgrade/downgrade scripts for new tables
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
description: Remove `function_has_implementation` and `const_has_implementation` tables
|
||||
compatibility: full
|
||||
|
||||
function_has_implementation.rel: delete
|
||||
const_has_implementation.rel: delete
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
description: Add `function_has_implementation` and `const_has_implementation` tables
|
||||
compatibility: backwards
|
||||
|
||||
function_has_implementation.rel: run upgrade.ql new_function_has_implementation
|
||||
const_has_implementation.rel: run upgrade.ql new_const_has_implementation
|
||||
@@ -0,0 +1,7 @@
|
||||
class Element extends @element {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
query predicate new_function_has_implementation(Element e) { function_bodies(e, _) }
|
||||
|
||||
query predicate new_const_has_implementation(Element e) { const_bodies(e, _) }
|
||||
Reference in New Issue
Block a user