aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-29 01:08:28 -0700
committerfriendica <info@friendica.com>2012-04-29 01:08:28 -0700
commit249a6814cd777e8eb9d4feb788058ec4683e9522 (patch)
treeef6af6b92562af0d0c78acc32998c0eacde321ee /update.php
parent64060f82dc68d490f3d729f3fbe139527c831fd0 (diff)
downloadvolse-hubzilla-249a6814cd777e8eb9d4feb788058ec4683e9522.tar.gz
volse-hubzilla-249a6814cd777e8eb9d4feb788058ec4683e9522.tar.bz2
volse-hubzilla-249a6814cd777e8eb9d4feb788058ec4683e9522.zip
add db field for removed account, which will also be the first test of update error checking
Diffstat (limited to 'update.php')
-rw-r--r--update.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/update.php b/update.php
index 2758f5906..3c2ecebb6 100644
--- a/update.php
+++ b/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1139 );
+define( 'UPDATE_VERSION' , 1140 );
/**
*
@@ -1215,4 +1215,11 @@ function update_1137() {
function update_1138() {
q("alter table contact add archive tinyint(1) not null default '0' after hidden, add index (archive)");
-} \ No newline at end of file
+}
+
+function update_1139() {
+ $r = q("alter table user add account_removed tinyint(1) not null default '0' after expire, add index(account_removed) ");
+ if(! $r)
+ return UPDATE_FAILED ;
+ return UPDATE_SUCCESS ;
+}