mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Merge pull request #7746 from hvitved/csharp/remove-legacy-relations
C#: Remove some unused legacy relations from the DB scheme
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,2 @@
|
||||
description: Remove unused legacy relations.
|
||||
compatibility: backwards
|
||||
@@ -166,59 +166,9 @@ compilation_assembly(
|
||||
int assembly: @assembly ref
|
||||
)
|
||||
|
||||
/*
|
||||
* External artifacts
|
||||
*/
|
||||
|
||||
externalDefects(
|
||||
unique int id: @externalDefect,
|
||||
string queryPath: string ref,
|
||||
int location: @location ref,
|
||||
string message: string ref,
|
||||
float severity: float ref);
|
||||
|
||||
externalMetrics(
|
||||
unique int id: @externalMetric,
|
||||
string queryPath: string ref,
|
||||
int location: @location ref,
|
||||
float value: float ref);
|
||||
|
||||
externalData(
|
||||
int id: @externalDataElement,
|
||||
string path: string ref,
|
||||
int column: int ref,
|
||||
string value: string ref);
|
||||
|
||||
snapshotDate(
|
||||
unique date snapshotDate: date ref);
|
||||
|
||||
sourceLocationPrefix(
|
||||
string prefix: string ref);
|
||||
|
||||
/*
|
||||
* Duplicate code
|
||||
*/
|
||||
|
||||
duplicateCode(
|
||||
unique int id: @duplication,
|
||||
string relativePath: string ref,
|
||||
int equivClass: int ref);
|
||||
|
||||
similarCode(
|
||||
unique int id: @similarity,
|
||||
string relativePath: string ref,
|
||||
int equivClass: int ref);
|
||||
|
||||
@duplication_or_similarity = @duplication | @similarity
|
||||
|
||||
tokens(
|
||||
int id: @duplication_or_similarity ref,
|
||||
int offset: int ref,
|
||||
int beginLine: int ref,
|
||||
int beginColumn: int ref,
|
||||
int endLine: int ref,
|
||||
int endColumn: int ref);
|
||||
|
||||
/*
|
||||
* C# dbscheme
|
||||
*/
|
||||
@@ -226,7 +176,7 @@ tokens(
|
||||
/** ELEMENTS **/
|
||||
|
||||
@element = @declaration | @stmt | @expr | @modifier | @attribute | @namespace_declaration
|
||||
| @using_directive | @type_parameter_constraints | @external_element
|
||||
| @using_directive | @type_parameter_constraints
|
||||
| @xmllocatable | @asp_element | @namespace | @preprocessor_directive;
|
||||
|
||||
@declaration = @callable | @generic | @assignable | @namespace;
|
||||
@@ -239,8 +189,6 @@ tokens(
|
||||
|
||||
@assignable_with_accessors = @property | @indexer;
|
||||
|
||||
@external_element = @externalMetric | @externalDefect | @externalDataElement;
|
||||
|
||||
@attributable = @assembly | @field | @parameter | @operator | @method | @constructor
|
||||
| @destructor | @callable_accessor | @value_or_ref_type | @declaration_with_accessors
|
||||
| @local_function;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
description: Remove unused legacy relations.
|
||||
compatibility: full
|
||||
externalDefects.rel: delete
|
||||
externalMetrics.rel: delete
|
||||
externalData.rel: delete
|
||||
snapshotDate.rel: delete
|
||||
duplicateCode.rel: delete
|
||||
similarCode.rel: delete
|
||||
tokens.rel: delete
|
||||
Reference in New Issue
Block a user