/[nuke]/html/upgrades/upgrade25-35.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /html/upgrades/upgrade25-35.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Fri Sep 22 19:06:18 2000 UTC (23 years, 7 months ago) by dpavlin
Branch: dbp, MAIN
CVS Tags: r3_6, HEAD
Changes since 1.1: +0 -0 lines
import of version 3.6

1 <?php
2
3 # File to upgrade PHP-Nuke from 2.5 to 3.5
4 # After use this, you can delete it
5
6 include("config.php");
7 include("mainfile.php");
8 dbconnect();
9
10 $result = mysql_query("CREATE TABLE ephem (eid int(11) DEFAULT '0' NOT NULL auto_increment, did int(2) DEFAULT '0' NOT NULL, mid int(2) DEFAULT '0' NOT NULL, yid int(4) DEFAULT '0' NOT NULL, content text NOT NULL, PRIMARY KEY (eid))");
11 if (!$result) {
12 echo "Creation of ephem table failed!<br>" .mysql_errno(). ": ".mysql_error(). "<br>";
13 return;
14 }
15
16 $result = mysql_query("ALTER TABLE stories DROP hits");
17 if (!$result) {
18 echo "Alteration of stories table failed!<br>" .mysql_errno(). ": ".mysql_error(). "<br>";
19 return;
20 }
21
22 $result = mysql_query("ALTER TABLE stories CHANGE introtext hometext text");
23 if (!$result) {
24 echo "Alteration of stories table failed!<br>" .mysql_errno(). ": ".mysql_error(). "<br>";
25 return;
26 }
27
28 $result = mysql_query("ALTER TABLE stories CHANGE fulltext bodytext text");
29 if (!$result) {
30 echo "Alteration of stories table failed!<br>" .mysql_errno(). ": ".mysql_error(). "<br>";
31 return;
32 }
33
34 echo "PHP-Nuke Tables Updated, Ok...";
35 ?>

  ViewVC Help
Powered by ViewVC 1.1.26