set default for account_level in DB

This commit is contained in:
friendica
2014-02-07 22:47:03 -08:00
parent ae6bd7dc1e
commit 8c845f5d50
3 changed files with 10 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1096 );
define( 'UPDATE_VERSION' , 1097 );
/**
*
@@ -1077,3 +1077,10 @@ ADD INDEX ( `channel_a_bookmark` )");
return UPDATE_FAILED;
}
function update_r1096() {
$r = q("ALTER TABLE `account` CHANGE `account_level` `account_level` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'");
if($r)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}