diff options
author | friendica <info@friendica.com> | 2012-07-05 15:57:28 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-07-05 15:57:28 -0700 |
commit | 10336651ba12db4e62737c1fbd6d63680217ff38 (patch) | |
tree | cb47173ca91bfa4d7c4500d726cd420f00bd8bfd /update.php | |
parent | 360c35e438f4ecb6a60cefde8ab8b0e3f6f0c57f (diff) | |
parent | 2edfc3b53902d1f666d239fbcb88492c57d81ca7 (diff) | |
download | volse-hubzilla-10336651ba12db4e62737c1fbd6d63680217ff38.tar.gz volse-hubzilla-10336651ba12db4e62737c1fbd6d63680217ff38.tar.bz2 volse-hubzilla-10336651ba12db4e62737c1fbd6d63680217ff38.zip |
Merge pull request #374 from fermionic/diaspora-prevent-fcontact-race-conditions
Prevent fcontact race conditions
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 14 |
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; +} + |