mirror of
https://github.com/friendica/friendica
synced 2025-04-26 14:30:13 +00:00
Database can now be automatically updated
This commit is contained in:
parent
35f1081bfe
commit
c052c6afca
3 changed files with 10 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
define( 'UPDATE_VERSION' , 1153 );
|
||||
define( 'UPDATE_VERSION' , 1154 );
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -1337,3 +1337,10 @@ function update_1152() {
|
|||
return UPDATE_SUCCESS;
|
||||
}
|
||||
|
||||
function update_1153() {
|
||||
$r = q("ALTER TABLE `hook` ADD `priority` INT(11) UNSIGNED NOT NULL DEFAULT '0'");
|
||||
|
||||
if(!$r) return UPDATE_FAILED;
|
||||
return UPDATE_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue