Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
831 |
florian |
1 |
<?php
|
|
|
2 |
if(!defined("PHORUM_ADMIN")) return;
|
|
|
3 |
|
|
|
4 |
$upgrade_queries[]="alter table {$PHORUM['files_table']} add column link varchar(10) NOT NULL DEFAULT ''";
|
|
|
5 |
$upgrade_queries[]="drop index message_id on {$PHORUM['files_table']}";
|
|
|
6 |
$upgrade_queries[]="create index message_id_link on {$PHORUM['files_table']} (message_id, link)";
|
|
|
7 |
$upgrade_queries[]="update {$PHORUM['files_table']} set link='message' where message_id != 0";
|
|
|
8 |
$upgrade_queries[]="update {$PHORUM['files_table']} set link='user' where message_id = 0";
|
|
|
9 |
|
|
|
10 |
?>
|