add rudimentary locking capability to Friendica functions
This commit is contained in:
parent
360c35e438
commit
168ae40dd2
4 changed files with 166 additions and 21 deletions
12
update.php
12
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue