aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1241.php
diff options
context:
space:
mode:
authormjfriaza <mjfriaza@noreply.codeberg.org>2021-02-18 13:28:05 +0100
committermjfriaza <mjfriaza@noreply.codeberg.org>2021-02-18 13:28:05 +0100
commit655ae9d1cdaa940bb7861eb34f4f489a636879b2 (patch)
tree0a10c3d602f5da23dca56ac1360c3ee98282e079 /Zotlabs/Update/_1241.php
parent76163fc37b76570e158ab32d53a1c0e0cc298bad (diff)
parent08c9152abdfa90da09931bdcc6e6c81ea243434c (diff)
downloadvolse-hubzilla-655ae9d1cdaa940bb7861eb34f4f489a636879b2.tar.gz
volse-hubzilla-655ae9d1cdaa940bb7861eb34f4f489a636879b2.tar.bz2
volse-hubzilla-655ae9d1cdaa940bb7861eb34f4f489a636879b2.zip
Merge branch 'dev' into dev
Diffstat (limited to 'Zotlabs/Update/_1241.php')
-rw-r--r--Zotlabs/Update/_1241.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1241.php b/Zotlabs/Update/_1241.php
new file mode 100644
index 000000000..1b2024aad
--- /dev/null
+++ b/Zotlabs/Update/_1241.php
@@ -0,0 +1,24 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1241 {
+
+ function run() {
+
+ q("START TRANSACTION");
+
+ // remove duplicated profile photos
+ $r = dbq("DELETE FROM photo WHERE imgscale IN (4, 5, 6) AND photo_usage = 0");
+
+ if($r) {
+ q("COMMIT");
+ return UPDATE_SUCCESS;
+ }
+
+ q("ROLLBACK");
+ return UPDATE_FAILED;
+
+ }
+
+}