fix 1.3.0 upgrade

This commit is contained in:
joyqi 2023-09-24 16:25:01 +08:00
parent 4c8c64c79e
commit 157de39b54
2 changed files with 6 additions and 3 deletions

View File

@ -168,7 +168,7 @@ namespace Typecho {
class Common
{
/** 程序版本 */
public const VERSION = '1.2.1';
public const VERSION = '1.3.0';
/**
* 将路径转化为链接

View File

@ -19,7 +19,7 @@ class Upgrade
* @param Db $db
* @param Options $options
*/
public static function v1_2_1(Db $db, Options $options)
public static function v1_3_0(Db $db, Options $options)
{
$routingTable = $options->routingTable;
@ -41,6 +41,9 @@ class Upgrade
->rows(['value' => serialize($routingTable)])
->where('name = ?', 'routingTable'));
// todo: fix options->commentsRequireURL
// fix options->commentsRequireURL
$db->query($db->update('table.options')
->rows(['name' => 'commentsRequireUrl'])
->where('name = ?', 'commentsRequireURL'));
}
}