mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
C#: Add upgrade and downgrade scripts.
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,3 @@
|
||||
description: Remove 'kind' from 'attributes'.
|
||||
compatability: full
|
||||
attributes.rel: reorder attributes.rel (int id, int kind, int type_id, int target) id type_id target
|
||||
@@ -0,0 +1,16 @@
|
||||
class Attribute extends @attribute {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class Attributable extends @attributable {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class TypeOrRef extends @type_or_ref {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
query predicate add_default_kind(Attribute id, int kind, TypeOrRef type_id, Attributable target) {
|
||||
kind = 0 and
|
||||
attributes(id, type_id, target)
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
||||
description: Add 'kind' to 'attributes'.
|
||||
compatability: backwards
|
||||
attributes.rel: run attribute_kind.ql
|
||||
Reference in New Issue
Block a user