Skip to content

Commit 26dfca8

Browse files
tamasvajkigfoo
authored andcommitted
Add DB upgrade scripts for diagnostics and compilation_finished
1 parent a5a31db commit 26dfca8

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Compilation extends @compilation {
2+
string toString() { none() }
3+
}
4+
5+
from Compilation c, float cpu_seconds, float elapsed_seconds
6+
where compilations(c, cpu_seconds, elapsed_seconds)
7+
select c, cpu_seconds, elapsed_seconds, /* success */ 0
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Diagnostic extends @diagnostic {
2+
string toString() { none() }
3+
}
4+
5+
class Location extends @location_default {
6+
string toString() { none() }
7+
}
8+
9+
from
10+
Diagnostic d, int severity, string error_tag, string error_message, string full_error_message,
11+
Location l
12+
where diagnostics(d, severity, error_tag, error_message, full_error_message, l)
13+
select d, /* generated_by */ "", severity, error_tag, error_message, full_error_message, l
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
description: Add Kotlin support
22
compatibility: backwards
33
compilations.rel: run compilations.qlo
4+
diagnostics.rel: run diagnostics.qlo
5+
compilation_finished.rel: run compilation_finished.qlo
46

0 commit comments

Comments
 (0)