aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Update/_1217.php
blob: 15d2d06b3350068429ad807effbd79e5f6e6a1bd (plain) (tree)





















                                                                                                 
<?php

namespace Zotlabs\Update;

class _1217 {

	function run() {
		if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
			$r = q("ALTER TABLE app ADD app_options smallint NOT NULL DEFAULT '0' ");
		}
		else {
			$r = q("ALTER TABLE app ADD app_options int(11) NOT NULL DEFAULT 0 ");
			
		}

		if($r) {
			return UPDATE_SUCCESS;
		}
		return UPDATE_FAILED;
	}
}