mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
Fix minor issues in /handbook/queries queries (#485)
- Fix syntax for installed software queries - Fix missing `version` column in `yum_packages` table for Get installed Linux software query
This commit is contained in:
parent
7970fa46a4
commit
49565ff1db
@ -11,25 +11,25 @@ FreeBSD
|
||||
```sql
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'chrome_extensions' AS source
|
||||
FROM chrome_extensions
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'firefox_addons' AS source
|
||||
FROM firefox_addons
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'atom_packages' AS source
|
||||
FROM atom_packages
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'python_packages' AS source
|
||||
FROM python_packages
|
||||
UNION
|
||||
|
@ -11,31 +11,31 @@ Linux
|
||||
```sql
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'apt_sources' AS source
|
||||
FROM apt_sources
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'deb_packages' AS source
|
||||
FROM deb_packages
|
||||
UNION
|
||||
SELECT
|
||||
package AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'portage_packages' AS source
|
||||
FROM portage_packages
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'rpm_packages' AS source
|
||||
FROM rpm_packages
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version,
|
||||
'' AS version,
|
||||
'yum_sources' AS source
|
||||
FROM yum_sources
|
||||
UNION
|
||||
|
@ -23,31 +23,31 @@ FROM python_packages
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'chrome_extensions' AS source
|
||||
FROM chrome_extensions
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'firefox_addons' AS source
|
||||
FROM firefox_addons
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'opera_extensions' AS source
|
||||
FROM opera_extensions
|
||||
UNION
|
||||
SELECT
|
||||
name As name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'safari_extensions' AS source
|
||||
FROM safari_extensions
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'homebrew_packages' AS source
|
||||
FROM homebrew_packages;
|
||||
```
|
||||
|
@ -23,37 +23,37 @@ FROM python_packages
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'ie_extensions' AS source
|
||||
FROM ie_extensions
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'chrome_extensions' AS source
|
||||
FROM chrome_extensions
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'firefox_addons' AS source
|
||||
FROM firefox_addons
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'chocolatey_packages' AS source
|
||||
FROM chocolatey_packages
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'atom_packages' AS source
|
||||
FROM atom_packages
|
||||
UNION
|
||||
SELECT
|
||||
name AS name,
|
||||
version AS version
|
||||
version AS version,
|
||||
'python_packages' AS source
|
||||
FROM python_packages;
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user