aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-07 22:47:03 -0800
committerfriendica <info@friendica.com>2014-02-07 22:47:03 -0800
commit8c845f5d506e333ecd8eaed3139bcd7e344ef346 (patch)
tree15b5621f252a4fc9737eeb0d6deec16dcb3d58d4 /install/update.php
parentae6bd7dc1e87805447e765e08d7a31ae5ac03f32 (diff)
downloadvolse-hubzilla-8c845f5d506e333ecd8eaed3139bcd7e344ef346.tar.gz
volse-hubzilla-8c845f5d506e333ecd8eaed3139bcd7e344ef346.tar.bz2
volse-hubzilla-8c845f5d506e333ecd8eaed3139bcd7e344ef346.zip
set default for account_level in DB
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 93442a81f..ccfec9ddf 100644
--- a/install/update.php
+++ b/install/update.php
@@ -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;
+}
+