JavaScript: Add upgrade script.

This commit is contained in:
Max Schaefer
2019-07-25 14:47:38 +01:00
parent 31b4d8dfb0
commit 2e760bf5b5
6 changed files with 2289 additions and 0 deletions

View File

@@ -26980,6 +26980,54 @@
</dependencies>
</relation>
<relation>
<name>yaml_locations</name>
<cardinality>71</cardinality>
<columnsizes>
<e>
<k>locatable</k>
<v>71</v>
</e>
<e>
<k>location</k>
<v>71</v>
</e>
</columnsizes>
<dependencies>
<dep>
<src>locatable</src>
<trg>location</trg>
<val>
<hist>
<budget>12</budget>
<bs>
<b>
<a>1</a>
<b>2</b>
<v>71</v>
</b>
</bs>
</hist>
</val>
</dep>
<dep>
<src>location</src>
<trg>locatable</trg>
<val>
<hist>
<budget>12</budget>
<bs>
<b>
<a>1</a>
<b>2</b>
<v>71</v>
</b>
</bs>
</hist>
</val>
</dep>
</dependencies>
</relation>
<relation>
<name>xmlEncoding</name>
<cardinality>39724</cardinality>
<columnsizes>

View File

@@ -0,0 +1,9 @@
class Locatable extends @locatable { string toString() { none() } }
class Location extends @location { string toString() { none() } }
from Locatable locatable, Location location
where
hasLocation(locatable, location) and
not locatable instanceof @yaml_node and
not locatable instanceof @yaml_error
select locatable, location

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,4 @@
description: Split YAML location information out into separate table.
compatibility: full
hasLocation.rel: run hasLocation.qlo
yaml_locations.rel: run yaml_locations.qlo

View File

@@ -0,0 +1,9 @@
class Locatable extends @locatable { string toString() { none() } }
class Location extends @location { string toString() { none() } }
from Locatable locatable, Location location
where
hasLocation(locatable, location) and
(locatable instanceof @yaml_node or
locatable instanceof @yaml_error)
select locatable, location