diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-06-01 22:27:00 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-06-01 22:27:00 +0000 |
| commit | f064c9bcdac19fd3a4684c30018d60e2b5d958ba (patch) | |
| tree | eb3480b56fdeba8c4cb8de6d1ae8f9b0cabdce0b /includes/db_schema/db_schema_24_25.php | |
| parent | c0fc671b1a49a8b4b22dc4a518ab8ccecde8a919 (diff) | |
| download | webtrees-f064c9bcdac19fd3a4684c30018d60e2b5d958ba.tar.gz webtrees-f064c9bcdac19fd3a4684c30018d60e2b5d958ba.tar.bz2 webtrees-f064c9bcdac19fd3a4684c30018d60e2b5d958ba.zip | |
Get ready to delete some old configuration options
Diffstat (limited to 'includes/db_schema/db_schema_24_25.php')
| -rw-r--r-- | includes/db_schema/db_schema_24_25.php | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/includes/db_schema/db_schema_24_25.php b/includes/db_schema/db_schema_24_25.php new file mode 100644 index 0000000000..a589a499f5 --- /dev/null +++ b/includes/db_schema/db_schema_24_25.php @@ -0,0 +1,45 @@ +<?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 +// +// $Id$ + +if (!defined('WT_WEBTREES')) { + header('HTTP/1.0 403 Forbidden'); + exit; +} + +self::exec( + "DELETE FROM `##gedcom_setting` WHERE setting_name IN ('ALLOW_EDIT_GEDCOM'')" +); + +self::exec( + "DELETE FROM `##site_setting` WHERE setting_name IN ('STORE_MESSAGES')" +); + +// Update the version to indicate success +WT_Site::preference($schema_name, $next_version); |
