Swift: add 5.7.1 migration scripts

This commit is contained in:
Alex Denisov
2022-11-24 10:31:04 +01:00
parent ad663533c7
commit fe0ae6bf0b
8 changed files with 10090 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
// Removes AbiSafeConversionExprs from ImplicitConversionExprs
class Element extends @element {
string toString() { none() }
}
from Element e, Element child
where implicit_conversion_exprs(e, child) and not abi_safe_conversion_exprs(e)
select e, child

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,13 @@
// Moves AbiSafeConversionExprs into UnspecifiedElements
class Element extends @element {
string toString() { none() }
}
from Element e, string property, string error
where
abi_safe_conversion_exprs(e) and
property = "" and
error = "Removed ABISafeConversionExpr during the database downgrade"
or
unspecified_elements(e, property, error)
select e, property, error

View File

@@ -0,0 +1,5 @@
description: Remove new implicit conversion
compatibility: partial
unspecified_elements.rel: run unspecified_elements.ql
implicit_conversion_exprs.rel: run implicit_conversion_exprs.ql
abi_safe_conversion_exprs.rel: delete

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,2 @@
description: Added new implicit conversion
compatibility: full