diff options
author | Zach Prezkuta <fermion@gmx.com> | 2012-06-14 20:58:25 -0600 |
---|---|---|
committer | Zach Prezkuta <fermion@gmx.com> | 2012-07-05 14:26:42 -0600 |
commit | 168ae40dd25ee827e9bcb01e27e52c0e203c21d6 (patch) | |
tree | 570cd0800706590eb993c82ee4ce80cb422cade6 /update.php | |
parent | 360c35e438f4ecb6a60cefde8ab8b0e3f6f0c57f (diff) | |
download | volse-hubzilla-168ae40dd25ee827e9bcb01e27e52c0e203c21d6.tar.gz volse-hubzilla-168ae40dd25ee827e9bcb01e27e52c0e203c21d6.tar.bz2 volse-hubzilla-168ae40dd25ee827e9bcb01e27e52c0e203c21d6.zip |
add rudimentary locking capability to Friendica functions
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/update.php b/update.php index b8e247f57..5e5ec3e86 100644 --- a/update.php +++ b/update.php @@ -1307,3 +1307,15 @@ function update_1150() { return UPDATE_SUCCESS; } + +function update_1151() { + $r = q("CREATE TABLE IF NOT EXISTS lock ( + 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; +} + |