summaryrefslogtreecommitdiff
path: root/includes/db_schema/db_schema_14_15.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-10-22 13:44:39 +0000
committerfisharebest <fisharebest@gmail.com>2011-10-22 13:44:39 +0000
commit53974dba57534affa41e3efd68cca0ea1ae5bbf7 (patch)
treee39eaecd27b66082d85cf50d30c5105930d2aa18 /includes/db_schema/db_schema_14_15.php
parent0efc12b6a1790a4d4f732ac2d208ceb5c22450f3 (diff)
downloadwebtrees-53974dba57534affa41e3efd68cca0ea1ae5bbf7.tar.gz
webtrees-53974dba57534affa41e3efd68cca0ea1ae5bbf7.tar.bz2
webtrees-53974dba57534affa41e3efd68cca0ea1ae5bbf7.zip
#859050 - cannot add "1 RESN" to "0 NOTE"
Diffstat (limited to 'includes/db_schema/db_schema_14_15.php')
-rw-r--r--includes/db_schema/db_schema_14_15.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/db_schema/db_schema_14_15.php b/includes/db_schema/db_schema_14_15.php
index e842bc53bc..233e27151e 100644
--- a/includes/db_schema/db_schema_14_15.php
+++ b/includes/db_schema/db_schema_14_15.php
@@ -1,6 +1,7 @@
<?php
// Update the database schema from version 14 to 15
// - delete old config settings
+// - update existing ones - we changed the default, but there is no GUI to edit it
//
// The script should assume that it can be interrupted at
// any point, and be able to continue by re-running the script.
@@ -37,6 +38,9 @@ if (!defined('WT_WEBTREES')) {
self::exec("DELETE FROM `##gedcom_setting` WHERE setting_name='GEDCOM_DEFAULT_TAB'");
self::exec("DELETE FROM `##user_setting` WHERE setting_name='default'");
+// There is no way to add a RESN tag to NOTE objects
+self::exec("UPDATE `##gedcom_setting` SET setting_value='SOUR,RESN' WHERE setting_name='NOTE_FACTS_ADD' AND setting_value='SOUR'");
+
// Update the version to indicate success
set_site_setting($schema_name, $next_version);