aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1171.php
blob: 5cbf0ca21c01d7f09a70e6785732b35a9ebe2d05 (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 _1171 {
function run() {

		$r1 = q("ALTER TABLE verify CHANGE `type` `vtype` varchar(32) NOT NULL DEFAULT '' ");
		$r2 = q("ALTER TABLE tokens CHANGE `scope` `auth_scope` varchar(512) NOT NULL DEFAULT '' ");
		$r3 = q("ALTER TABLE auth_codes CHANGE `scope` `auth_scope` varchar(512) NOT NULL DEFAULT '' ");
		$r4 = q("ALTER TABLE clients CHANGE `name` `clname` TEXT ");
		$r5 = q("ALTER TABLE session CHANGE `data` `sess_data` TEXT NOT NULL ");
		$r6 = q("ALTER TABLE register CHANGE `language` `lang` varchar(16) NOT NULL DEFAULT '' ");

	if($r1 && $r2 && $r3 && $r4 && $r5 && $r6)
		return UPDATE_SUCCESS;
	return UPDATE_FAILED;



}


}