diff options
author | friendica <info@friendica.com> | 2012-12-29 03:02:22 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-12-29 03:02:22 -0800 |
commit | 39c30d161f2d576252399a92620bfdc9a2f8a9f6 (patch) | |
tree | 4b0f3d004d4adaa4a937692be598ee4d5c1b6f32 /install/update.php | |
parent | 098de66c2fcda2e6e2449640e888a0d1f9e5aa84 (diff) | |
download | volse-hubzilla-39c30d161f2d576252399a92620bfdc9a2f8a9f6.tar.gz volse-hubzilla-39c30d161f2d576252399a92620bfdc9a2f8a9f6.tar.bz2 volse-hubzilla-39c30d161f2d576252399a92620bfdc9a2f8a9f6.zip |
add item expires field
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index e8f52273e..3b75f0e5f 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1011 ); +define( 'UPDATE_VERSION' , 1012 ); /** * @@ -180,3 +180,12 @@ ADD INDEX ( `abook_dob` )"); return UPDATE_FAILED; } +function update_r1011() { + $r = q("ALTER TABLE `item` ADD `expires` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `edited` , +ADD INDEX ( `expires` )"); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + |