Skip to content

Commit 51359ef

Browse files
laoneorichard67
andauthored
[5.0] Delete demo plugin (#40147)
--------- Co-authored-by: Richard Fath <[email protected]>
1 parent bfe7d50 commit 51359ef

File tree

12 files changed

+3
-340
lines changed

12 files changed

+3
-340
lines changed

administrator/components/com_admin/script.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ protected function uninstallExtensions()
229229
* 'pre_function' => Name of an optional migration function to be called before
230230
* uninstalling, `null` if not used.
231231
*/
232+
['type' => 'plugin', 'element' => 'demotasks', 'folder' => 'task', 'client_id' => 0, 'pre_function' => null],
232233
];
233234

234235
$db = Factory::getDbo();
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DELETE FROM `#__scheduler_tasks` WHERE `type` = 'demoTask_r1.sleep';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DELETE FROM "#__scheduler_tasks" WHERE "type" = 'demoTask_r1.sleep';

administrator/language/en-GB/plg_task_demotasks.ini

Lines changed: 0 additions & 19 deletions
This file was deleted.

administrator/language/en-GB/plg_task_demotasks.sys.ini

Lines changed: 0 additions & 7 deletions
This file was deleted.

installation/sql/mysql/base.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,6 @@ INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`,
357357
(0, 'plg_system_updatenotification', 'plugin', 'updatenotification', 'system', 0, 1, 1, 0, 1, '', '', '', 23, 0),
358358
(0, 'plg_system_webauthn', 'plugin', 'webauthn', 'system', 0, 1, 1, 0, 1, '', '{}', '', 24, 0),
359359
(0, 'plg_task_checkfiles', 'plugin', 'checkfiles', 'task', 0, 1, 1, 0, 1, '', '{}', '', 1, 0),
360-
(0, 'plg_task_demotasks', 'plugin', 'demotasks', 'task', 0, 1, 1, 0, 1, '', '{}', '', 2, 0),
361360
(0, 'plg_task_requests', 'plugin', 'requests', 'task', 0, 1, 1, 0, 1, '', '{}', '', 3, 0),
362361
(0, 'plg_task_sitestatus', 'plugin', 'sitestatus', 'task', 0, 1, 1, 0, 1, '', '{}', '', 4, 0),
363362
(0, 'plg_multifactorauth_totp', 'plugin', 'totp', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 1, 0),

installation/sql/postgresql/base.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder",
363363
(0, 'plg_system_updatenotification', 'plugin', 'updatenotification', 'system', 0, 1, 1, 0, 1, '', '', '', 23, 0),
364364
(0, 'plg_system_webauthn', 'plugin', 'webauthn', 'system', 0, 1, 1, 0, 1, '', '{}', '', 24, 0),
365365
(0, 'plg_task_checkfiles', 'plugin', 'checkfiles', 'task', 0, 1, 1, 0, 1, '', '{}', '', 1, 0),
366-
(0, 'plg_task_demotasks', 'plugin', 'demotasks', 'task', 0, 1, 1, 0, 1, '', '{}', '', 2, 0),
367366
(0, 'plg_task_requests', 'plugin', 'requests', 'task', 0, 1, 1, 0, 1, '', '{}', '', 3, 0),
368367
(0, 'plg_task_sitestatus', 'plugin', 'sitestatus', 'task', 0, 1, 1, 0, 1, '', '{}', '', 4, 0),
369368
(0, 'plg_multifactorauth_totp', 'plugin', 'totp', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 1, 0),

libraries/src/Extension/ExtensionHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ class ExtensionHelper
309309

310310
// Core plugin extensions - task scheduler
311311
['plugin', 'checkfiles', 'task', 0],
312-
['plugin', 'demotasks', 'task', 0],
313312
['plugin', 'requests', 'task', 0],
314313
['plugin', 'sitestatus', 'task', 0],
315314

plugins/task/demotasks/demotasks.xml

Lines changed: 0 additions & 22 deletions
This file was deleted.

plugins/task/demotasks/forms/testTaskForm.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)