aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1241.php
blob: 1b2024aad94b4d2d926643bad37b38e82ceee4b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;

	}

}