C#: Add upgrade and downgrade scripts.

This commit is contained in:
Michael Nebel
2022-02-02 09:51:19 +01:00
parent 2c6e35f55e
commit 62d987f31f
7 changed files with 8222 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,3 @@
description: Add 'kind' to 'attributes'.
compatability: backwards
attributes.rel: run attribute_kind.ql