mirror of
https://github.com/typecho/typecho.git
synced 2025-04-22 10:43:57 +02:00
fix 1.3.0 upgrade
This commit is contained in:
parent
4c8c64c79e
commit
157de39b54
@ -168,7 +168,7 @@ namespace Typecho {
|
||||
class Common
|
||||
{
|
||||
/** 程序版本 */
|
||||
public const VERSION = '1.2.1';
|
||||
public const VERSION = '1.3.0';
|
||||
|
||||
/**
|
||||
* 将路径转化为链接
|
||||
|
@ -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'));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user