From d971b104edc51ddf3819eded837de97357c3b395 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 29 Jan 2018 13:14:56 +0100 Subject: Do not cache the settings/sections in the database anymore This caused more troubles then it had benefits, especially when an app got disabled or was removed without being disabled. Signed-off-by: Joas Schilling --- core/Migrations/Version14000Date20180129121024.php | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 core/Migrations/Version14000Date20180129121024.php (limited to 'core/Migrations/Version14000Date20180129121024.php') 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 @@ + + * + * @author Joas Schilling + * + * @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 . + * + */ +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; + } +} -- cgit v1.2.3