aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1259.php
blob: 235ca62f9c624a8e444d4cf2722aedd8eca5cba3 (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
25
26
27
28
29
30
<?php

namespace Zotlabs\Update;

class _1259 {

	function run() {

		dbq("START TRANSACTION");


		if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
			$r = true;
		}

		if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
			$r = dbq("ALTER TABLE cache MODIFY COLUMN v MEDIUMTEXT NOT NULL");
		}

		if($r) {
			dbq("COMMIT");
			return UPDATE_SUCCESS;
		}

		q("ROLLBACK");
		return UPDATE_FAILED;

	}

}