db update for directory profiles - and fix broken database.sql from the sys_perms addition a couple days back

This commit is contained in:
friendica
2013-12-25 01:22:51 -08:00
parent b1ade138ff
commit 5dee22c94d
3 changed files with 30 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1087 );
define( 'UPDATE_VERSION' , 1088 );
/**
*
@@ -957,3 +957,13 @@ ADD INDEX ( `account_level` )");
return UPDATE_FAILED;
}
function update_r1087() {
$r = q("ALTER TABLE `xprof` ADD `xprof_about` TEXT NOT NULL DEFAULT '',
ADD `xprof_homepage` CHAR( 255 ) NOT NULL DEFAULT '',
ADD `xprof_hometown` CHAR( 255 ) NOT NULL DEFAULT '',
ADD INDEX ( `xprof_hometown` )");
if($r)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}