Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/survey_client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2020-07-14 14:44:23 +0300
committerGitHub <noreply@github.com>2020-07-14 14:44:23 +0300
commit25a22f0db3eecf09d22c3c24ed18c8b17fa70dbf (patch)
tree53a34583c3bee5108476ea9c40655323c5627be3 /appinfo
parent00cb4654b8048e8a29bb51599a47825c4be27dab (diff)
parent312cdf1eaa5b321e21953aa7ad8ac8ae34179cfc (diff)
Merge pull request #110 from nextcloud/techdebt/noid/use-repair-step
Use repair step instead of install.php and update.php
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/info.xml5
-rw-r--r--appinfo/install.php24
-rw-r--r--appinfo/update.php24
3 files changed, 5 insertions, 48 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 268c0a1..bace50b 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -20,6 +20,11 @@
<dependencies>
<nextcloud min-version="20" max-version="20" />
</dependencies>
+ <repair-steps>
+ <post-migration>
+ <step>OCA\Survey_Client\Migration\SendAdminNotification</step>
+ </post-migration>
+ </repair-steps>
<settings>
<admin>OCA\Survey_Client\Settings\AdminSettings</admin>
<admin-section>OCA\Survey_Client\Settings\AdminSection</admin-section>
diff --git a/appinfo/install.php b/appinfo/install.php
deleted file mode 100644
index 1020531..0000000
--- a/appinfo/install.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/**
- * @author Joas Schilling <coding@schilljs.com>
- *
- * @copyright Copyright (c) 2016, ownCloud, Inc.
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License, version 3,
- * along with this program. If not, see <http://www.gnu.org/licenses/>
- *
- */
-
-if (!\OC::$server->getJobList()->has('OCA\Survey_Client\BackgroundJobs\MonthlyReport', null)) {
- \OC::$server->getJobList()->add('OCA\Survey_Client\BackgroundJobs\AdminNotification');
-}
diff --git a/appinfo/update.php b/appinfo/update.php
deleted file mode 100644
index 1020531..0000000
--- a/appinfo/update.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/**
- * @author Joas Schilling <coding@schilljs.com>
- *
- * @copyright Copyright (c) 2016, ownCloud, Inc.
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License, version 3,
- * along with this program. If not, see <http://www.gnu.org/licenses/>
- *
- */
-
-if (!\OC::$server->getJobList()->has('OCA\Survey_Client\BackgroundJobs\MonthlyReport', null)) {
- \OC::$server->getJobList()->add('OCA\Survey_Client\BackgroundJobs\AdminNotification');
-}