fixed missing DB stuff

This commit is contained in:
Rodolfo Berrios 2020-08-26 12:22:37 -04:00
parent 178173f9ae
commit 280140511e
2 changed files with 2 additions and 4 deletions

View file

@ -511,7 +511,7 @@ UPDATE `%table_prefix%users` SET user_content_views = COALESCE((SELECT SUM(image
]
],
'1.2.0' => [
// 'imports' => [], // ADD TABLE
'imports' => [], // ADD TABLE
'importing' => [], // ADD TABLE
'redirects' => [], // ADD TABLE
'images' => [
@ -567,7 +567,7 @@ UPDATE `%table_prefix%users` SET user_content_views = COALESCE((SELECT SUM(image
],
'pages' => [
'page_internal' => [
'op' => 'MODIFY',
'op' => 'ADD',
'type' => 'varchar(191)',
'prop' => 'DEFAULT NULL',
],

View file

@ -116,11 +116,9 @@ try {
break;
case 'extract':
$zip_file = $update_temp_dir . $_REQUEST['file'];
if (false === preg_match('/^(chevereto-chevereto-free)-([\d.]+)-\d+-g(.*)_.*$/i', $_REQUEST['file'], $matches)) {
throw new Exception("Can't detect target zip file version");
}
$version = $matches[2];
$etag_short = $matches[3];
if (!is_readable($zip_file)) {