Skip to content

Commit

Permalink
Merge pull request #118 from internetarchive/schema-rewrtie
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
cyberpower678 committed Jan 16, 2024
2 parents d63e37d + 4251302 commit 034342b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/src/Core/DB.php
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ public static function createELScanLogTable() {
`reported_error` VARCHAR(255) NULL,
`request_data` BLOB NOT NULL,
PRIMARY KEY (`scan_id` ASC),
INDEX `URLID_scan_log` (`url_id` ASC),
INDEX `RESULT` (`scanned_dead` ASC ),
INDEX `HOST` (`host_machine` ASC ),
INDEX `IP` (`external_ip` ASC ),
Expand Down
2 changes: 1 addition & 1 deletion app/src/html/Includes/pagefunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ function loadURLsfromPages( &$jsonOut ) {
WIKIPEDIA .
".url_id = " . DB . ".externallinks_global.url_id LEFT JOIN " . DB . ".externallinks_paywall ON " . DB . ".externallinks_global.paywall_id = " . DB . ".externallinks_paywall.paywall_id WHERE `pageid` IN (" .
implode( ", ", $pageIDs ) . ") AND ";
$fetchSQL .= ' " . DB . ".externallinks_global.`url_id` >= ' . $dbObject->sanitize( $loadedArguments['offset'] );
$fetchSQL .= ' ' . DB . '.externallinks_global.`url_id` >= ' . $dbObject->sanitize( $loadedArguments['offset'] );
$fetchSQL .= " ORDER BY " . DB . ".externallinks_global.`url_id` ASC LIMIT 1001;";
$res = $dbObject->queryDB( $fetchSQL );
if ( $res ) {
Expand Down

0 comments on commit 034342b

Please sign in to comment.