fixed missing DB stuff

pull/72/head
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' => [ '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',
], ],

View File

@ -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)) {