aboutsummaryrefslogtreecommitdiffstats
path: root/util/storageconv
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-06-10 17:51:55 +0000
committerMario <mario@mariovavti.com>2019-06-10 22:32:54 +0200
commitdd1f631d9ddcc488554d44c0259265dd8c75e429 (patch)
tree2d0d438beb53082af475fa38f16be74b3a87c805 /util/storageconv
parent9f403a4d6b04d2c92274e415d331c485dc0fafbb (diff)
downloadvolse-hubzilla-dd1f631d9ddcc488554d44c0259265dd8c75e429.tar.gz
volse-hubzilla-dd1f631d9ddcc488554d44c0259265dd8c75e429.tar.bz2
volse-hubzilla-dd1f631d9ddcc488554d44c0259265dd8c75e429.zip
PgSQL compatibility on conversion
(cherry picked from commit 94254e61c188fdc553acbfb99e78adb892569892)
Diffstat (limited to 'util/storageconv')
-rwxr-xr-xutil/storageconv4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/storageconv b/util/storageconv
index 9c49787d1..1e053e075 100755
--- a/util/storageconv
+++ b/util/storageconv
@@ -45,7 +45,7 @@ if($argc == 2) {
break;
}
- $x = q("SELECT DISTINCT resource_id, content FROM photo WHERE photo_usage = 0 AND os_storage = 1 AND imgscale = 0");
+ $x = q("SELECT resource_id, content FROM photo WHERE photo_usage = 0 AND os_storage = 1 AND imgscale = 0");
if($x) {
foreach($x as $xx) {
@@ -85,7 +85,7 @@ if($argc == 2) {
break;
}
- $x = q("SELECT DISTINCT resource_id FROM photo WHERE photo_usage = 0 AND os_storage = 1 AND imgscale = 0");
+ $x = q("SELECT resource_id FROM photo WHERE photo_usage = 0 AND os_storage = 1 AND imgscale = 0");
if($x) {
foreach($x as $xx) {