diff options
author | friendica <info@friendica.com> | 2013-05-05 19:34:56 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-05 19:34:56 -0700 |
commit | 6f04a7e07033c8ca06df47defe1839d5763f1ee6 (patch) | |
tree | 8ea9d590d84335ef5eaa60a66eb1a707c46276ff /install/update.php | |
parent | ef07b71bc7972f79a7e5c1001a8c31d75b0cca68 (diff) | |
download | volse-hubzilla-6f04a7e07033c8ca06df47defe1839d5763f1ee6.tar.gz volse-hubzilla-6f04a7e07033c8ca06df47defe1839d5763f1ee6.tar.bz2 volse-hubzilla-6f04a7e07033c8ca06df47defe1839d5763f1ee6.zip |
minor fixes related to postgres development
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index eb796ccf6..31857ff2d 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1040 ); +define( 'UPDATE_VERSION' , 1041 ); /** * @@ -513,3 +513,13 @@ function update_r1039() { return UPDATE_FAILED; } + +function update_r1040() { + $r = q("ALTER TABLE `session` CHANGE `expire` `expire` BIGINT UNSIGNED NOT NULL, + ALTER TABLE `tokens` CHANGE `expires` `expires` BIGINT UNSIGNED NOT NULL "); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; + +} |