summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-01-31 12:49:45 +0100
committerGitHub <noreply@github.com>2018-01-31 12:49:45 +0100
commit142914608307839dca300a2d410b869b6d2d3444 (patch)
treef040a5a33b4c28146c7600a28bcc32e0437230f1 /core
parentcb26f6d0148c3b1ae5122b70ddc2f5538834a7a7 (diff)
parentd971b104edc51ddf3819eded837de97357c3b395 (diff)
downloadnextcloud-server-142914608307839dca300a2d410b869b6d2d3444.tar.gz
nextcloud-server-142914608307839dca300a2d410b869b6d2d3444.zip
Merge pull request #8096 from nextcloud/feature/6382/do-not-cache-settings-in-db-anymore
Do not cache the settings/sections in the database anymore
Diffstat (limited to 'core')
-rw-r--r--core/Migrations/Version14000Date20180129121024.php52
1 files changed, 52 insertions, 0 deletions
diff --git a/core/Migrations/Version14000Date20180129121024.php b/core/Migrations/Version14000Date20180129121024.php
new file mode 100644
index 00000000000..eedd99d014e
--- /dev/null
+++ b/core/Migrations/Version14000Date20180129121024.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * @copyright Copyright (c) 2018 Joas Schilling <coding@schilljs.com>
+ *
+ * @author Joas Schilling <coding@schilljs.com>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * 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
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+namespace OC\Core\Migrations;
+
+use OCP\DB\ISchemaWrapper;
+use OCP\Migration\SimpleMigrationStep;
+use OCP\Migration\IOutput;
+
+/**
+ * Delete the admin|personal sections and settings tables
+ */
+class Version14000Date20180129121024 extends SimpleMigrationStep {
+
+ /**
+ * @param IOutput $output
+ * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+ * @param array $options
+ * @return null|ISchemaWrapper
+ * @since 13.0.0
+ */
+ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
+ /** @var ISchemaWrapper $schema */
+ $schema = $schemaClosure();
+
+ $schema->dropTable('admin_sections');
+ $schema->dropTable('admin_settings');
+ $schema->dropTable('personal_sections');
+ $schema->dropTable('personal_settings');
+
+ return $schema;
+ }
+}