diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-10-06 15:22:59 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-10-06 15:22:59 +0100 |
| commit | f5dbc9df08fcf5f50a0ea7c4f0f30e87bf70e6d0 (patch) | |
| tree | 4297fe71c4c35f2968b0a2cd55d2893b82f6a2aa /includes | |
| parent | f7509442b4165a04e988c0b5af023b072e323d6f (diff) | |
| download | webtrees-f5dbc9df08fcf5f50a0ea7c4f0f30e87bf70e6d0.tar.gz webtrees-f5dbc9df08fcf5f50a0ea7c4f0f30e87bf70e6d0.tar.bz2 webtrees-f5dbc9df08fcf5f50a0ea7c4f0f30e87bf70e6d0.zip | |
Cleanup unused config settings
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/db_schema/db_schema_25_26.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/includes/db_schema/db_schema_25_26.php b/includes/db_schema/db_schema_25_26.php new file mode 100644 index 0000000000..3bb40834f1 --- /dev/null +++ b/includes/db_schema/db_schema_25_26.php @@ -0,0 +1,40 @@ +<?php +// Update the database schema from version 24-25 +// - delete unused settings and update indexes +// +// The script should assume that it can be interrupted at +// any point, and be able to continue by re-running the script. +// Fatal errors, however, should be allowed to throw exceptions, +// which will be caught by the framework. +// It shouldn't do anything that might take more than a few +// seconds, for systems with low timeout values. +// +// webtrees: Web based Family History software +// Copyright (C) 2013 Greg Roach +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +if (!defined('WT_WEBTREES')) { + header('HTTP/1.0 403 Forbidden'); + exit; +} + +// Site settings that are no longer used. +self::exec( + "DELETE FROM `##site_setting` WHERE setting_name IN ('WELCOME_TEXT_CUST_HEAD')" +); + +// Update the version to indicate success +WT_Site::preference($schema_name, $next_version); |
