831 |
florian |
1 |
<?php
|
|
|
2 |
if(!defined("PHORUM_ADMIN")) return;
|
|
|
3 |
|
|
|
4 |
$upgrade_queries[]="alter table {$PHORUM['message_table']} add closed tinyint(4) NOT NULL default '0'";
|
|
|
5 |
|
|
|
6 |
$upgrade_queries[]="update {$PHORUM['message_table']} set closed=1, status=2 where status=1";
|
|
|
7 |
|
|
|
8 |
$upgrade_queries[]="alter table {$PHORUM['message_table']} add key dup_check (forum_id,author,subject,datestamp)";
|
|
|
9 |
|
|
|
10 |
$upgrade_queries[]="alter table {$PHORUM['message_table']} drop key message_id";
|
|
|
11 |
|
|
|
12 |
$upgrade_queries[]="alter table {$PHORUM['message_table']} add key forum_max_message (forum_id, message_id)";
|
|
|
13 |
|
|
|
14 |
$upgrade_queries[]="alter table {$PHORUM['message_table']} add key last_post_time (forum_id, status, modifystamp)";
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
?>
|