Browse Source

display pseudo-deleted content

pull/7/head
KVAZAR 3 years ago committed by GitHub
parent
commit
58815af72d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      library/mysql.php

10
library/mysql.php

@ -27,7 +27,7 @@ class MySQL {
WHERE `namespace`.`hash` = ? WHERE `namespace`.`hash` = ?
AND `data`.`ns` = "1" AND `data`.`ns` = "1"
AND `data`.`deleted` = "0" -- AND `data`.`deleted` = "0" --
ORDER BY `data`.`blockId` DESC ORDER BY `data`.`blockId` DESC
@ -63,7 +63,7 @@ class MySQL {
WHERE `data`.`txid` = ? WHERE `data`.`txid` = ?
AND `data`.`ns` = "0" AND `data`.`ns` = "0"
AND `data`.`deleted` = "0" -- AND `data`.`deleted` = "0" --
ORDER BY `block`.`blockId` DESC ORDER BY `block`.`blockId` DESC
@ -86,7 +86,7 @@ class MySQL {
WHERE `namespace`.`hash` = ? WHERE `namespace`.`hash` = ?
AND `data`.`ns` = "0" AND `data`.`ns` = "0"
AND `data`.`deleted` = "0" -- AND `data`.`deleted` = "0" --
ORDER BY `block`.`blockId` DESC ORDER BY `block`.`blockId` DESC
@ -114,7 +114,7 @@ class MySQL {
OR `data`.`txid` LIKE :search) OR `data`.`txid` LIKE :search)
AND `data`.`ns` = "0" AND `data`.`ns` = "0"
AND `data`.`deleted` = "0" -- AND `data`.`deleted` = "0" --
ORDER BY `block`.`blockId` DESC ORDER BY `block`.`blockId` DESC
@ -138,7 +138,7 @@ class MySQL {
JOIN `namespace` ON (`namespace`.`nameSpaceId` = `data`.`nameSpaceId`) JOIN `namespace` ON (`namespace`.`nameSpaceId` = `data`.`nameSpaceId`)
WHERE `data`.`ns` = "0" WHERE `data`.`ns` = "0"
AND `data`.`deleted` = "0" -- AND `data`.`deleted` = "0" --
ORDER BY `block`.`blockId` DESC ORDER BY `block`.`blockId` DESC

Loading…
Cancel
Save