Skip to content

Commit

Permalink
fix missing db update
Browse files Browse the repository at this point in the history
  • Loading branch information
popiazaza committed Aug 21, 2020
1 parent df10457 commit db71f11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion th_chat/discuz_plugin_th_chat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<item id="datatables"><![CDATA[]]></item>
<item id="directory"><![CDATA[th_chat/]]></item>
<item id="copyright"><![CDATA[newz]]></item>
<item id="version"><![CDATA[2.20]]></item>
<item id="version"><![CDATA[2.20b]]></item>
<item id="__modules">
<item id="0">
<item id="name"><![CDATA[chat]]></item>
Expand Down
5 changes: 5 additions & 0 deletions th_chat/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,10 @@
runquery($sql);
}

if ($_GET['fromversion'] <= "2.20b") {
DB::query("ALTER TABLE `pre_newz_data` RENAME `".DB::table('newz_data')."`;");
DB::query("ALTER TABLE `pre_newz_nick` RENAME `".DB::table('newz_nick')."`;");
}

$finish = TRUE;
?>

0 comments on commit db71f11

Please sign in to comment.