aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1221.php
blob: 75b400adccec5baa9c205f19e5f1cdd3af90d4c8 (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
<?php

namespace Zotlabs\Update;

class _1221 {

	function run() {

		q("START TRANSACTION");

		$r1 = q("ALTER table " . TQUOT . 'groups' . TQUOT . " rename to pgrp ");
		$r2 = q("ALTER table " . TQUOT . 'group_member' . TQUOT . " rename to pgrp_member ");


		if($r1 && $r2) {
			q("COMMIT");
			return UPDATE_SUCCESS;
		}

		q("ROLLBACK");
		return UPDATE_FAILED;

	}

}