some changes to database_update to circumvent doubled updates for RC's

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8582 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2008-06-03 14:50:41 +00:00
parent d0cd2152ff
commit 459db0eb1b

View file

@ -8,7 +8,7 @@
*
*/
$updates_to_version = '3.0.1';
$updates_to_version = '3.0.1'; //'3.0.2-RC1';
// Return if we "just include it" to find out for which version the database update is responsible for
if (defined('IN_PHPBB') && defined('IN_INSTALL'))
@ -33,7 +33,7 @@ error_reporting(E_ALL);
// Include essential scripts
include($phpbb_root_path . 'config.' . $phpEx);
if (!isset($dbms))
if (!defined('PHPBB_INSTALLED') || empty($dbms) || empty($acm_type))
{
die("Please read: <a href='../docs/INSTALL.html'>INSTALL.html</a> before attempting to update.");
}
@ -496,6 +496,10 @@ $database_update_info = array(
GROUPS_TABLE => array('group_legend'),
),
),
// No changes from 3.0.0 to 3.0.1-RC1
'3.0.1-RC1' => array(),
// No changes from 3.0.1-RC1 to 3.0.1
'3.0.1' => array(),
);
// Determine mapping database type
@ -1211,7 +1215,7 @@ flush();
$no_updates = true;
$versions = array(
'3.0.RC2', '3.0.RC3', '3.0.RC4', '3.0.RC5', '3.0.0'
'3.0.RC2', '3.0.RC3', '3.0.RC4', '3.0.RC5', '3.0.0', '3.0.1-RC1'
);
// some code magic
@ -1739,12 +1743,14 @@ function change_database_data($version)
break;
case '3.0.1':
case '3.0.1-RC1':
set_config('referer_validation', '1');
set_config('check_attachment_content', '1');
set_config('mime_triggers', 'body|head|html|img|plaintext|a href|pre|script|table|title');
break;
}
}