Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5] add2scheduler-sessiongc #41326

Merged
merged 61 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
1892da2
add2scheduler-sessiongc
alikon Aug 6, 2023
d6ba125
cs
alikon Aug 6, 2023
649f3fc
cs
alikon Aug 6, 2023
d45978d
Update plugins/task/sessiongc/src/Extension/SessionGC.php
alikon Aug 6, 2023
e283035
Update plugins/task/sessiongc/services/provider.php
alikon Aug 6, 2023
bef59d3
Update installation/sql/mysql/base.sql
alikon Aug 6, 2023
466feb9
Update installation/sql/postgresql/base.sql
alikon Aug 6, 2023
bb83935
Update libraries/src/Extension/ExtensionHelper.php
alikon Aug 6, 2023
ad4ea6f
Update administrator/language/en-GB/plg_task_sessiongc.sys.ini
alikon Aug 7, 2023
251ee3b
Update administrator/language/en-GB/plg_task_sessiongc.ini
alikon Aug 7, 2023
8ade8f8
Update administrator/components/com_admin/script.php
alikon Aug 10, 2023
615cb05
feedback
alikon Aug 10, 2023
8cb3d53
pgsql
alikon Aug 10, 2023
0362e73
Merge branch '5.0-dev' into add2scheduler-sessiogc
alikon Aug 11, 2023
dfd5abf
cs
alikon Aug 11, 2023
3d87e26
cs
alikon Aug 11, 2023
cc2c701
Update administrator/components/com_admin/script.php
alikon Aug 13, 2023
85e5411
norm
alikon Aug 13, 2023
4071d03
Merge branch '5.0-dev' into add2scheduler-sessiogc
alikon Aug 13, 2023
84f3d4e
cs
alikon Aug 14, 2023
3d159cd
Merge branch '5.0-dev' into add2scheduler-sessiogc
alikon Aug 14, 2023
e84685e
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Aug 25, 2023
96ad6d5
Merge branch '5.0-dev' into add2scheduler-sessiogc
alikon Aug 26, 2023
f386f23
Rename 5.0.0-2023-08-08.sql to 5.0.0-2023-08-26.sql
alikon Aug 26, 2023
c59f3ba
Rename 5.0.0-2023-08-08.sql to 5.0.0-2023-08-26.sql
alikon Aug 26, 2023
f0dcda8
delete old lang files
heelc29 Aug 26, 2023
6d8f175
xml cs
heelc29 Aug 26, 2023
ad593e2
add return type
heelc29 Aug 26, 2023
4e4ba16
Rename 5.0.0-2023-08-26.sql to 5.0.0-2023-08-28.sql
richard67 Aug 26, 2023
cc22a2a
Rename 5.0.0-2023-08-26.sql to 5.0.0-2023-08-28.sql
richard67 Aug 26, 2023
a4b371e
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Aug 26, 2023
5d29c6d
Merge pull request #31 from heelc29/5.0/sessiongc-41326
alikon Aug 27, 2023
2b74661
Merge branch '5.0-dev' into add2scheduler-sessiogc
alikon Aug 28, 2023
8e76476
Rename 5.0.0-2023-08-28.sql to 5.0.0-2023-08-30.sql
richard67 Sep 1, 2023
90c537b
Rename 5.0.0-2023-08-28.sql to 5.0.0-2023-08-30.sql
richard67 Sep 1, 2023
60590ec
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Sep 1, 2023
e0d680f
SQL CS
richard67 Sep 1, 2023
3261b02
SQL CS
richard67 Sep 1, 2023
a3e59a7
Single quotes
richard67 Sep 2, 2023
032298a
Set last and next execution and locked of task on new installation
richard67 Sep 2, 2023
0d2f403
Fix place for insert statement and setval
richard67 Sep 2, 2023
6424413
Task should be enabled on a new installation
richard67 Sep 2, 2023
d9edfbc
Make sure to have UTC timestamps on PostgreSQL
richard67 Sep 2, 2023
bffe540
Rename 5.0.0-2023-08-30.sql to 5.0.0-2023-09-02.sql
richard67 Sep 2, 2023
80cb800
Rename 5.0.0-2023-08-30.sql to 5.0.0-2023-09-02.sql
richard67 Sep 2, 2023
a298504
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Sep 2, 2023
83beb44
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Sep 2, 2023
bfabda6
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Sep 2, 2023
9c74652
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Sep 2, 2023
54fab94
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Sep 2, 2023
b68922e
Fix exec time
richard67 Sep 3, 2023
0834ea2
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Sep 3, 2023
6aaa331
Add parameters to SQL insert of task
richard67 Sep 3, 2023
977845d
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Sep 3, 2023
0f7d80c
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Sep 3, 2023
efcb083
Fix wrong asset name from previous conflicts
richard67 Sep 3, 2023
28e56d3
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Sep 3, 2023
ffe4883
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Sep 3, 2023
0fc2d1e
Merge branch '5.0-dev' into add2scheduler-sessiogc
richard67 Sep 3, 2023
4409b85
Merge branch '5.0-dev' into add2scheduler-sessiogc
HLeithner Sep 4, 2023
431028e
Update plugins/task/sessiongc/src/Extension/SessionGC.php
HLeithner Sep 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ protected function uninstallExtensions()
['type' => 'plugin', 'element' => 'compat', 'folder' => 'system', 'client_id' => 0, 'pre_function' => 'migrateCompatPlugin'],
['type' => 'plugin', 'element' => 'logrotation', 'folder' => 'system', 'client_id' => 0, 'pre_function' => 'migrateLogRotationPlugin'],
['type' => 'plugin', 'element' => 'recaptcha', 'folder' => 'captcha', 'client_id' => 0, 'pre_function' => null],
['type' => 'plugin', 'element' => 'sessiongc', 'folder' => 'system', 'client_id' => 0, 'pre_function' => 'migrateSessionGCPlugin'],
['type' => 'plugin', 'element' => 'updatenotification', 'folder' => 'system', 'client_id' => 0, 'pre_function' => 'migrateUpdatenotificationPlugin'],
];

Expand Down Expand Up @@ -360,6 +361,49 @@ private function migrateLogRotationPlugin($data)
$model->save($task);
}

/**
* This method is for migration for old updatenotification system plugin migration to task.
*
* @param \stdClass $data Object with the extension's record in the `#__extensions` table
*
* @return void
*
* @since __DEPLOY_VERSION__
*/
private function migrateSessionGCPlugin($data)
{
if (!$data->enabled) {
return;
}

// Get the plugin parameters
$params = new Registry($data->params);

/** @var SchedulerComponent $component */
$component = Factory::getApplication()->bootComponent('com_scheduler');

/** @var TaskModel $model */
$model = $component->getMVCFactory()->createModel('Task', 'Administrator', ['ignore_request' => true]);
$task = [
'title' => 'SessionGC',
'type' => 'session.gc',
'execution_rules' => [
'rule-type' => 'interval-hours',
'interval-hours' => 24,
'exec-time' => gmdate('H:i'),
'exec-day' => gmdate('d'),
],
'state' => 1,
'params' => [
'enable_session_gc' => $params->get('enable_session_gc', 1),
'gc_probability' => $params->get('gc_probability', 1),
'gc_divisor' => $params->get('gc_divisor', 100),
'enable_session_metadata_gc' => $params->get('enable_session_metadata_gc', 1),
],
];
$model->save($task);
}

/**
* This method is for migration for old updatenotification system plugin migration to task.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ INSERT INTO `#__extensions` (`name`, `type`, `element`, `folder`, `client_id`, `
('plg_task_deleteactionlogs', 'plugin', 'deleteactionlogs', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0),
('plg_task_privacyconsent', 'plugin', 'privacyconsent', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0),
('plg_task_rotatelogs', 'plugin', 'rotatelogs', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0),
('plg_task_sessiongc', 'plugin', 'sessiongc', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0),
('plg_task_updatenotification', 'plugin', 'updatenotification', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0);

INSERT INTO `#__mail_templates` (`template_id`, `extension`, `language`, `subject`, `body`, `htmlbody`, `attachments`, `params`) VALUES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ INSERT INTO "#__extensions" ("name", "type", "element", "folder", "client_id", "
('plg_task_deleteactionlogs', 'plugin', 'deleteactionlogs', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0),
('plg_task_privacyconsent', 'plugin', 'privacyconsent', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0),
('plg_task_rotatelogs', 'plugin', 'rotatelogs', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0),
('plg_task_sessiongc', 'plugin', 'sessiongc', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0),
('plg_task_updatenotification', 'plugin', 'updatenotification', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0);

INSERT INTO "#__mail_templates" ("template_id", "extension", "language", "subject", "body", "htmlbody", "attachments", "params") VALUES
Expand Down
15 changes: 0 additions & 15 deletions administrator/language/en-GB/plg_system_sessiongc.ini

This file was deleted.

7 changes: 0 additions & 7 deletions administrator/language/en-GB/plg_system_sessiongc.sys.ini

This file was deleted.

17 changes: 17 additions & 0 deletions administrator/language/en-GB/plg_task_sessiongc.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
; Joomla! Project
; (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
; License GNU General Public License version 2 or later; see LICENSE.txt
; Note : All ini files need to be saved as UTF-8

PLG_TASK_SESSIONGC="Task - Session Data Purge"
PLG_TASK_SESSIONGC_ENABLE_SESSION_GC_DESC="When enabled, this plugin will attempt to purge expired data based on the frequency calculated by the probability and divisor."
PLG_TASK_SESSIONGC_ENABLE_SESSION_GC_LABEL="Enable Session Data Cleanup"
PLG_TASK_SESSIONGC_ENABLE_SESSION_METADATA_GC_DESC="When enabled, this plugin will clean optional session metadata from the database. Note that this operation will not run when the database handler is in use as that data is cleared as part of the Session Data Cleanup operation."
PLG_TASK_SESSIONGC_ENABLE_SESSION_METADATA_GC_LABEL="Enable Session Metadata Cleanup"
PLG_TASK_SESSIONGC_GC_DIVISOR_DESC="In combination with the probability field, these two fields are used to determine the frequency of the session data cleanup operation being triggered on a request. The probability is calculated by using probability/divisor, eg 1/100 means there is a 1% chance that the process runs on each request."
PLG_TASK_SESSIONGC_GC_DIVISOR_LABEL="Divisor"
PLG_TASK_SESSIONGC_GC_PROBABILITY_DESC="In combination with the divisor field, these two fields are used to determine the frequency of the session data cleanup operation being triggered on a request."
PLG_TASK_SESSIONGC_GC_PROBABILITY_LABEL="Probability"
PLG_TASK_SESSIONGC_XML_DESCRIPTION="Task Plugin that purges expired data and metadata depending on the session handler set in Global Configuration."
PLG_TASK_SESSIONGC_TITLE="Task - Session Data Purge"
PLG_TASK_SESSIONGC_DESC="Task Plugin that purges expired data and metadata depending on the session handler set in Global Configuration."
9 changes: 9 additions & 0 deletions administrator/language/en-GB/plg_task_sessiongc.sys.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
; Joomla! Project
; (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
; License GNU General Public License version 2 or later; see LICENSE.txt
; Note : All ini files need to be saved as UTF-8

PLG_TASK_SESSIONGC="Task - Session Data Purge"
PLG_TASK_SESSIONGC_XML_DESCRIPTION="Task Plugin that purges expired data and metadata depending on the session handler set in Global Configuration."
PLG_TASK_SESSIONGC_TITLE="Task - Session Data Purge"
PLG_TASK_SESSIONGC_DESC="Task Plugin that purges expired data and metadata depending on the session handler set in Global Configuration."
11 changes: 6 additions & 5 deletions installation/sql/mysql/base.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ CREATE TABLE IF NOT EXISTS `#__assets` (
--

INSERT INTO `#__assets` (`id`, `parent_id`, `lft`, `rgt`, `level`, `name`, `title`, `rules`) VALUES
(1, 0, 0, 181, 0, 'root.1', 'Root Asset', '{"core.login.site":{"6":1,"2":1},"core.login.admin":{"6":1},"core.login.api":{"8":1},"core.login.offline":{"6":1},"core.admin":{"8":1},"core.manage":{"7":1},"core.create":{"6":1,"3":1},"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1},"core.edit.own":{"6":1,"3":1}}'),
(1, 0, 0, 183, 0, 'root.1', 'Root Asset', '{"core.login.site":{"6":1,"2":1},"core.login.admin":{"6":1},"core.login.api":{"8":1},"core.login.offline":{"6":1},"core.admin":{"8":1},"core.manage":{"7":1},"core.create":{"6":1,"3":1},"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1},"core.edit.own":{"6":1,"3":1}}'),
(2, 1, 1, 2, 1, 'com_admin', 'com_admin', '{}'),
(3, 1, 3, 6, 1, 'com_banners', 'com_banners', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
(4, 1, 7, 8, 1, 'com_cache', 'com_cache', '{"core.admin":{"7":1},"core.manage":{"7":1}}'),
Expand Down Expand Up @@ -115,7 +115,8 @@ INSERT INTO `#__assets` (`id`, `parent_id`, `lft`, `rgt`, `level`, `name`, `titl
(95, 1, 175, 176, 1, 'com_guidedtours', 'com_guidedtours', '{}'),
(96, 18, 130, 131, 2, 'com_modules.module.109', 'Guided Tours', '{}'),
(97, 1, 177, 178, 1, 'com_scheduler.task.1', 'com_scheduler.task.1', '{}'),
(98, 1, 179, 180, 1, 'com_scheduler.task.2', 'com_scheduler.task.2', '{}');
(98, 1, 179, 180, 1, 'com_scheduler.task.2', 'com_scheduler.task.2', '{}'),
(99, 1, 181, 182, 1, 'com_scheduler.task.3', 'com_scheduler.task.3', '{}');

-- --------------------------------------------------------

Expand Down Expand Up @@ -357,7 +358,6 @@ INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`,
(0, 'plg_system_schedulerunner', 'plugin', 'schedulerunner', 'system', 0, 1, 1, 0, 1, '', '{}', '', 17, 0),
(0, 'plg_system_schemaorg', 'plugin', 'schemaorg', 'system', 0, 1, 1, 0, 0, '', '{}', '', 18, 0),
(0, 'plg_system_sef', 'plugin', 'sef', 'system', 0, 1, 1, 0, 1, '', '', '', 19, 0),
(0, 'plg_system_sessiongc', 'plugin', 'sessiongc', 'system', 0, 1, 1, 0, 1, '', '', '', 20, 0),
richard67 marked this conversation as resolved.
Show resolved Hide resolved
(0, 'plg_system_shortcut', 'plugin', 'shortcut', 'system', 0, 1, 1, 0, 1, '', '{}', '', 21, 0),
(0, 'plg_system_skipto', 'plugin', 'skipto', 'system', 0, 1, 1, 0, 1, '', '{}', '', 22, 0),
(0, 'plg_system_stats', 'plugin', 'stats', 'system', 0, 1, 1, 0, 1, '', '', '', 23, 0),
Expand All @@ -369,8 +369,9 @@ INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`,
(0, 'plg_task_requests', 'plugin', 'requests', 'task', 0, 1, 1, 0, 1, '', '{}', '', 4, 0),
(0, 'plg_task_privacyconsent', 'plugin', 'privacyconsent', 'task', 0, 1, 1, 0, 1, '', '{}', '', 5, 0),
(0, 'plg_task_rotatelogs', 'plugin', 'rotatelogs', 'task', 0, 1, 1, 0, 1, '', '{}', '', 6, 0),
(0, 'plg_task_sitestatus', 'plugin', 'sitestatus', 'task', 0, 1, 1, 0, 1, '', '{}', '', 7, 0),
(0, 'plg_task_updatenotification', 'plugin', 'updatenotification', 'task', 0, 1, 1, 0, 1, '', '{}', '', 8, 0),
(0, 'plg_task_sessiongc', 'plugin', 'sessiongc', 'task', 0, 1, 1, 0, 1, '', '{}', '', 7, 0),
(0, 'plg_task_sitestatus', 'plugin', 'sitestatus', 'task', 0, 1, 1, 0, 1, '', '{}', '', 8, 0),
(0, 'plg_task_updatenotification', 'plugin', 'updatenotification', 'task', 0, 1, 1, 0, 1, '', '{}', '', 9, 0),
(0, 'plg_multifactorauth_totp', 'plugin', 'totp', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 1, 0),
(0, 'plg_multifactorauth_yubikey', 'plugin', 'yubikey', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 2, 0),
(0, 'plg_multifactorauth_webauthn', 'plugin', 'webauthn', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 3, 0),
Expand Down
3 changes: 2 additions & 1 deletion installation/sql/mysql/extensions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,8 @@ CREATE TABLE IF NOT EXISTS `#__scheduler_tasks` (

INSERT INTO `#__scheduler_tasks` (`id`, `asset_id`, `title`, `type`, `execution_rules`, `cron_rules`, `state`, `last_execution`, `next_execution`, `locked`, `params`, `created`) VALUES
(1, 97, 'RotateLogs', 'rotation.logs', CONCAT('{"rule-type":"interval-days","interval-days":"30","exec-day":"', DATE_FORMAT(NOW(), '%e'), '","exec-time":"', TIME_FORMAT(NOW(), '%H:00'), '"}'), '{"type":"interval","exp":"P30D"}', 1, NULL, DATE_FORMAT(NOW() + INTERVAL 30 DAY, '%Y-%m-%d %H:00:00'), NULL, '{"individual_log":false,"log_file":"","notifications":{"success_mail":"0","failure_mail":"1","fatal_failure_mail":"1","orphan_mail":"1"},"logstokeep":1}', NOW()),
(2, 98, 'UpdateNotification', 'update.notification', CONCAT('{"rule-type":"interval-hours","interval-hours":"24","exec-day":"01","exec-time":"', TIME_FORMAT(NOW(), '%H:00'), '"}'), '{"type":"interval","exp":"PT24H"}', 1, NULL, DATE_FORMAT(NOW() + INTERVAL 24 HOUR, '%Y-%m-%d %H:00:00'), NULL, '{"individual_log":false,"log_file":"","notifications":{"success_mail":"0","failure_mail":"1","fatal_failure_mail":"1","orphan_mail":"1"},"email":"","language_override":""}', NOW());
(2, 98, 'SessionGC', 'session.gc', CONCAT('{"rule-type":"interval-hours","interval-hours":"24","exec-day":"01","exec-time":"', TIME_FORMAT(NOW(), '%H:00'), '"}'), '{"type":"interval","exp":"PT24H"}', 1, NULL, DATE_FORMAT(NOW() + INTERVAL 24 HOUR, '%Y-%m-%d %H:00:00'), NULL, '{"individual_log":false,"log_file":"","notifications":{"success_mail":"0","failure_mail":"1","fatal_failure_mail":"1","orphan_mail":"1"},"enable_session_gc":1,"enable_session_metadata_gc":1,"gc_probability":1,"gc_divisor":100}', NOW()),
(3, 99, 'UpdateNotification', 'update.notification', CONCAT('{"rule-type":"interval-hours","interval-hours":"24","exec-day":"01","exec-time":"', TIME_FORMAT(NOW(), '%H:00'), '"}'), '{"type":"interval","exp":"PT24H"}', 1, NULL, DATE_FORMAT(NOW() + INTERVAL 24 HOUR, '%Y-%m-%d %H:00:00'), NULL, '{"individual_log":false,"log_file":"","notifications":{"success_mail":"0","failure_mail":"1","fatal_failure_mail":"1","orphan_mail":"1"},"email":"","language_override":""}', NOW());

-- --------------------------------------------------------

Expand Down
13 changes: 7 additions & 6 deletions installation/sql/postgresql/base.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ COMMENT ON COLUMN "#__assets"."rules" IS 'JSON encoded access control.';
--

INSERT INTO "#__assets" ("id", "parent_id", "lft", "rgt", "level", "name", "title", "rules") VALUES
(1, 0, 0, 181, 0, 'root.1', 'Root Asset', '{"core.login.site":{"6":1,"2":1},"core.login.admin":{"6":1},"core.login.api":{"8":1},"core.login.offline":{"6":1},"core.admin":{"8":1},"core.manage":{"7":1},"core.create":{"6":1,"3":1},"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1},"core.edit.own":{"6":1,"3":1}}'),
(1, 0, 0, 183, 0, 'root.1', 'Root Asset', '{"core.login.site":{"6":1,"2":1},"core.login.admin":{"6":1},"core.login.api":{"8":1},"core.login.offline":{"6":1},"core.admin":{"8":1},"core.manage":{"7":1},"core.create":{"6":1,"3":1},"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1},"core.edit.own":{"6":1,"3":1}}'),
(2, 1, 1, 2, 1, 'com_admin', 'com_admin', '{}'),
(3, 1, 3, 6, 1, 'com_banners', 'com_banners', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
(4, 1, 7, 8, 1, 'com_cache', 'com_cache', '{"core.admin":{"7":1},"core.manage":{"7":1}}'),
Expand Down Expand Up @@ -121,9 +121,10 @@ INSERT INTO "#__assets" ("id", "parent_id", "lft", "rgt", "level", "name", "titl
(95, 1, 175, 176, 1, 'com_guidedtours', 'com_guidedtours', '{}'),
(96, 18, 130, 131, 2, 'com_modules.module.109', 'Guided Tours', '{}'),
(97, 1, 177, 178, 1, 'com_scheduler.task.1', 'com_scheduler.task.1', '{}'),
(98, 1, 179, 180, 1, 'com_scheduler.task.2', 'com_scheduler.task.2', '{}');
(98, 1, 179, 180, 1, 'com_scheduler.task.2', 'com_scheduler.task.2', '{}'),
(99, 1, 181, 182, 1, 'com_scheduler.task.3', 'com_scheduler.task.3', '{}');

SELECT setval('#__assets_id_seq', 99, false);
SELECT setval('#__assets_id_seq', 100, false);

--
-- Table structure for table `#__extensions`
Expand Down Expand Up @@ -363,7 +364,6 @@ INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder",
(0, 'plg_system_schedulerunner', 'plugin', 'schedulerunner', 'system', 0, 1, 1, 0, 1, '', '{}', '', 17, 0),
(0, 'plg_system_schemaorg', 'plugin', 'schemaorg', 'system', 0, 1, 1, 0, 0, '', '{}', '', 18, 0),
(0, 'plg_system_sef', 'plugin', 'sef', 'system', 0, 1, 1, 0, 1, '', '', '', 19, 0),
(0, 'plg_system_sessiongc', 'plugin', 'sessiongc', 'system', 0, 1, 1, 0, 1, '', '', '', 20, 0),
richard67 marked this conversation as resolved.
Show resolved Hide resolved
(0, 'plg_system_shortcut', 'plugin', 'shortcut', 'system', 0, 1, 1, 0, 1, '', '{}', '', 21, 0),
(0, 'plg_system_skipto', 'plugin', 'skipto', 'system', 0, 1, 1, 0, 1, '', '{}', '', 22, 0),
(0, 'plg_system_stats', 'plugin', 'stats', 'system', 0, 1, 1, 0, 1, '', '', '', 23, 0),
Expand All @@ -375,8 +375,9 @@ INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder",
(0, 'plg_task_requests', 'plugin', 'requests', 'task', 0, 1, 1, 0, 1, '', '{}', '', 4, 0),
(0, 'plg_task_privacyconsent', 'plugin', 'privacyconsent', 'task', 0, 1, 1, 0, 1, '', '{}', '', 5, 0),
(0, 'plg_task_rotatelogs', 'plugin', 'rotatelogs', 'task', 0, 1, 1, 0, 1, '', '{}', '', 6, 0),
(0, 'plg_task_sitestatus', 'plugin', 'sitestatus', 'task', 0, 1, 1, 0, 1, '', '{}', '', 7, 0),
(0, 'plg_task_updatenotification', 'plugin', 'updatenotification', 'task', 0, 1, 1, 0, 1, '', '{}', '', 8, 0),
(0, 'plg_task_sessiongc', 'plugin', 'sessiongc', 'task', 0, 1, 1, 0, 1, '', '{}', '', 7, 0),
(0, 'plg_task_sitestatus', 'plugin', 'sitestatus', 'task', 0, 1, 1, 0, 1, '', '{}', '', 8, 0),
(0, 'plg_task_updatenotification', 'plugin', 'updatenotification', 'task', 0, 1, 1, 0, 1, '', '{}', '', 9, 0),
(0, 'plg_multifactorauth_totp', 'plugin', 'totp', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 1, 0),
(0, 'plg_multifactorauth_yubikey', 'plugin', 'yubikey', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 2, 0),
(0, 'plg_multifactorauth_webauthn', 'plugin', 'webauthn', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 3, 0),
Expand Down
Loading