Skip to content

Commit 37cb4e4

Browse files
author
Max Schaefer
committed
JavaScript: Add upgrade script.
1 parent 79a7a8c commit 37cb4e4

File tree

6 files changed

+2279
-0
lines changed

6 files changed

+2279
-0
lines changed

javascript/ql/src/semmlecode.javascript.dbscheme.stats

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22547,6 +22547,54 @@
2254722547
</dependencies>
2254822548
</relation>
2254922549
<relation>
22550+
<name>json_locations</name>
22551+
<cardinality>712</cardinality>
22552+
<columnsizes>
22553+
<e>
22554+
<k>locatable</k>
22555+
<v>712</v>
22556+
</e>
22557+
<e>
22558+
<k>location</k>
22559+
<v>712</v>
22560+
</e>
22561+
</columnsizes>
22562+
<dependencies>
22563+
<dep>
22564+
<src>locatable</src>
22565+
<trg>location</trg>
22566+
<val>
22567+
<hist>
22568+
<budget>12</budget>
22569+
<bs>
22570+
<b>
22571+
<a>1</a>
22572+
<b>2</b>
22573+
<v>712</v>
22574+
</b>
22575+
</bs>
22576+
</hist>
22577+
</val>
22578+
</dep>
22579+
<dep>
22580+
<src>location</src>
22581+
<trg>locatable</trg>
22582+
<val>
22583+
<hist>
22584+
<budget>12</budget>
22585+
<bs>
22586+
<b>
22587+
<a>1</a>
22588+
<b>2</b>
22589+
<v>712</v>
22590+
</b>
22591+
</bs>
22592+
</hist>
22593+
</val>
22594+
</dep>
22595+
</dependencies>
22596+
</relation>
22597+
<relation>
2255022598
<name>hasLocation</name>
2255122599
<cardinality>19213780</cardinality>
2255222600
<columnsizes>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Locatable extends @locatable { string toString() { none() } }
2+
class Location extends @location { string toString() { none() } }
3+
4+
from Locatable locatable, Location location
5+
where
6+
hasLocation(locatable, location) and
7+
not locatable instanceof @json_value and
8+
not locatable instanceof @json_parse_error
9+
select locatable, location
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Locatable extends @locatable { string toString() { none() } }
2+
class Location extends @location { string toString() { none() } }
3+
4+
from Locatable locatable, Location location
5+
where
6+
hasLocation(locatable, location) and
7+
(locatable instanceof @json_value or
8+
locatable instanceof @json_parse_error)
9+
select locatable, location

0 commit comments

Comments
 (0)