aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Update/_1262.php
blob: f457a0116275194adbf3e23381c25b183f32dd04 (plain) (tree)





























                                                                                                    
<?php

namespace Zotlabs\Update;

class _1262 {

	function run() {

		dbq("START TRANSACTION");


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

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

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

		q("ROLLBACK");
		return UPDATE_FAILED;

	}

}