Aetheria/RethinkDB Queries.txt
hyperion51 98371fc453 Corporation Creation Screen
Added UI for creating a corporation; selecting a parent and choosing a name
2020-05-18 01:06:30 +01:00

20 lines
No EOL
870 B
Text

Empty Galaxy
r.db('Aetheria').table('Galaxy').filter({$type:'ZoneData'}).update({visited: false})
r.db('Aetheria').table('Galaxy').filter({$type:'ZoneData'}).update({orbits: [ ]})
r.db('Aetheria').table('Galaxy').filter({$type:'ZoneData'}).update({planets: [ ]})
r.db('Aetheria').table('Galaxy').filter({$type:'OrbitData'}).delete()
r.db('Aetheria').table('Galaxy').filter({$type:'PlanetData'}).delete()
Find Unassigned Items
r.db('Aetheria').table('Items').filter({mass:0}).pluck('$type','name')
Find Unassigned Blueprints
r.db('Aetheria').table('Items').filter({researchTime:0}).pluck('name')
Find Unassigned Stats
r.db('Aetheria').table('Items').filter({durabilityStat:{min:0}}).pluck('$type','name')
Find Galaxy Sectors With Long Names
r.db('Aetheria').table('Galaxy').filter({$type:'ZoneData'}).filter(function (zone) {
return zone("name").count().gt(8);
})