aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-05 16:06:43 -0700
committerfriendica <info@friendica.com>2012-07-05 16:06:43 -0700
commit8af78079cbabe530554950ac241b24bbdcaf2cb7 (patch)
treeb745750faaefbdca15c90a7b740de717ac8c17ea /update.php
parent9951071b5b3c5d1589f804275b31c42b0c4f7e5b (diff)
parentfe984963ed5d5411cd7e7d169ad24bf4ab2e5419 (diff)
downloadvolse-hubzilla-8af78079cbabe530554950ac241b24bbdcaf2cb7.tar.gz
volse-hubzilla-8af78079cbabe530554950ac241b24bbdcaf2cb7.tar.bz2
volse-hubzilla-8af78079cbabe530554950ac241b24bbdcaf2cb7.zip
Merge https://github.com/friendica/friendica into pull
Diffstat (limited to 'update.php')
-rw-r--r--update.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/update.php b/update.php
index b8e247f57..28fe469f1 100644
--- a/update.php
+++ b/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1151 );
+define( 'UPDATE_VERSION' , 1152 );
/**
*
@@ -1307,3 +1307,15 @@ function update_1150() {
return UPDATE_SUCCESS;
}
+
+function update_1151() {
+ $r = q("CREATE TABLE IF NOT EXISTS locks (
+ id INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
+ name CHAR( 128 ) NOT NULL ,
+ locked TINYINT( 1 ) NOT NULL DEFAULT '0'
+ ) ENGINE = MYISAM DEFAULT CHARSET=utf8 ");
+ if (!$r)
+ return UPDATE_FAILED;
+ return UPDATE_SUCCESS;
+}
+