0.49 ms (12.71%)
1
SELECT LOWER (HEX (`script` . `app_id` )) as `app_id` ,
`script` . `name` AS scriptName ,
`script` . `script` AS script ,
`script` . `hook` AS hook ,
`app` . `name` AS appName ,
`app` . `version` AS appVersion ,
LOWER (HEX (`app` . `integration_id` )) AS integrationId ,
IFNULL (`script` . `updated_at` , `script` . `created_at` ) AS lastModified ,
IF (`script` . `active` = 1 AND (`app` . id IS NULL OR `app` . `active` = 1 ), 1 , 0 ) AS active
FROM `script`
LEFT JOIN `app` ON `script` . `app_id` = `app` . `id`
ORDER BY `app` . `created_at` , `app` . `id` , `script` . `name`
SELECT LOWER (HEX (`script` . `app_id` )) as `app_id` ,
`script` . `name` AS scriptName ,
`script` . `script` AS script ,
`script` . `hook` AS hook ,
`app` . `name` AS appName ,
`app` . `version` AS appVersion ,
LOWER (HEX (`app` . `integration_id` )) AS integrationId ,
IFNULL (`script` . `updated_at` , `script` . `created_at` ) AS lastModified ,
IF (`script` . `active` = 1 AND (`app` . id IS NULL OR `app` . `active` = 1 ), 1 , 0 ) AS active
FROM `script`
LEFT JOIN `app` ON `script` . `app_id` = `app` . `id`
ORDER BY `app` . `created_at` , `app` . `id` , `script` . `name`
;
Copy
0.41 ms (10.64%)
1
SELECT
`name` ,
`base_class` AS baseClass ,
IF (`active` = 1 AND `installed_at` IS NOT NULL , 1 , 0 ) AS active ,
`path` ,
`version` ,
`autoload` ,
`managed_by_composer` AS managedByComposer ,
composer_name as composerName
FROM `plugin`
ORDER BY `installed_at` ;
SELECT
`name` ,
`base_class` AS baseClass ,
IF (`active` = 1 AND `installed_at` IS NOT NULL , 1 , 0 ) AS active ,
`path` ,
`version` ,
`autoload` ,
`managed_by_composer` AS managedByComposer ,
composer_name as composerName
FROM `plugin`
ORDER BY `installed_at` ; ;
Copy