fixed missing DB stuff
parent
178173f9ae
commit
280140511e
|
@ -511,7 +511,7 @@ UPDATE `%table_prefix%users` SET user_content_views = COALESCE((SELECT SUM(image
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'1.2.0' => [
|
'1.2.0' => [
|
||||||
// 'imports' => [], // ADD TABLE
|
'imports' => [], // ADD TABLE
|
||||||
'importing' => [], // ADD TABLE
|
'importing' => [], // ADD TABLE
|
||||||
'redirects' => [], // ADD TABLE
|
'redirects' => [], // ADD TABLE
|
||||||
'images' => [
|
'images' => [
|
||||||
|
@ -567,7 +567,7 @@ UPDATE `%table_prefix%users` SET user_content_views = COALESCE((SELECT SUM(image
|
||||||
],
|
],
|
||||||
'pages' => [
|
'pages' => [
|
||||||
'page_internal' => [
|
'page_internal' => [
|
||||||
'op' => 'MODIFY',
|
'op' => 'ADD',
|
||||||
'type' => 'varchar(191)',
|
'type' => 'varchar(191)',
|
||||||
'prop' => 'DEFAULT NULL',
|
'prop' => 'DEFAULT NULL',
|
||||||
],
|
],
|
||||||
|
|
|
@ -116,11 +116,9 @@ try {
|
||||||
break;
|
break;
|
||||||
case 'extract':
|
case 'extract':
|
||||||
$zip_file = $update_temp_dir . $_REQUEST['file'];
|
$zip_file = $update_temp_dir . $_REQUEST['file'];
|
||||||
|
|
||||||
if (false === preg_match('/^(chevereto-chevereto-free)-([\d.]+)-\d+-g(.*)_.*$/i', $_REQUEST['file'], $matches)) {
|
if (false === preg_match('/^(chevereto-chevereto-free)-([\d.]+)-\d+-g(.*)_.*$/i', $_REQUEST['file'], $matches)) {
|
||||||
throw new Exception("Can't detect target zip file version");
|
throw new Exception("Can't detect target zip file version");
|
||||||
}
|
}
|
||||||
|
|
||||||
$version = $matches[2];
|
$version = $matches[2];
|
||||||
$etag_short = $matches[3];
|
$etag_short = $matches[3];
|
||||||
if (!is_readable($zip_file)) {
|
if (!is_readable($zip_file)) {
|
||||||
|
|
Loading…
Reference in New Issue