-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/*-------------------------------------------------------+ | ||
| PHPFusion Content Management System | ||
| Copyright (C) PHP Fusion Inc | ||
| https://phpfusion.com/ | ||
+--------------------------------------------------------+ | ||
| Filename: 2.2.1.upgrade.inc | ||
| Author: Core Development Team | ||
+--------------------------------------------------------+ | ||
| This program is released as free software under the | ||
| Affero GPL license. You can redistribute it and/or | ||
| modify it under the terms of this license which you | ||
| can read by viewing the included agpl.txt or online | ||
| at www.gnu.org/licenses/agpl.html. Removal of this | ||
| copyright header is strictly prohibited without | ||
| written permission from the original author(s). | ||
+--------------------------------------------------------*/ | ||
$inf_version = '2.2.1'; | ||
|
||
$settings = get_settings('forum'); | ||
$change_forums = [ | ||
'post_id' => " CHANGE post_id post_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT, add PRIMARY KEY (post_id)", | ||
]; | ||
foreach ($change_forums as $key => $value) { | ||
if (column_exists(DB_POST_NOTIFY, $key, FALSE)) { | ||
$inf_altertable[] = DB_POST_NOTIFY.$value; | ||
} | ||
} |