diff options
author | zottel <github@zottel.net> | 2012-06-03 14:21:51 +0200 |
---|---|---|
committer | zottel <github@zottel.net> | 2012-06-03 14:21:51 +0200 |
commit | 70c4ab68754941749a5e89434d6db19f6bba1e16 (patch) | |
tree | 525a6536b6ab7f9020e83daf9287c785303ad584 /update.php | |
parent | df2fdf08ddf8cb354022992d4353ced4295b77b3 (diff) | |
parent | daa4f5213f726b22846859f2f12d06889e9bdc9b (diff) | |
download | volse-hubzilla-70c4ab68754941749a5e89434d6db19f6bba1e16.tar.gz volse-hubzilla-70c4ab68754941749a5e89434d6db19f6bba1e16.tar.bz2 volse-hubzilla-70c4ab68754941749a5e89434d6db19f6bba1e16.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/update.php b/update.php index f94b89fd3..1b2098e6e 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1145 ); +define( 'UPDATE_VERSION' , 1147 ); /** * @@ -1259,3 +1259,19 @@ function update_1144() { return UPDATE_FAILED ; return UPDATE_SUCCESS ; } + +function update_1145() { + $r = q("alter table profile add howlong datetime not null default '0000-00-00 00:00:00' after `with`"); + if(! $r) + return UPDATE_FAILED ; + return UPDATE_SUCCESS ; +} + +function update_1146() { + $r = q("alter table profile add hometown char(255) not null after `country-name`, add index ( `hometown` ) "); + if(! $r) + return UPDATE_FAILED ; + return UPDATE_SUCCESS ; +} + + |