Current time: 03-17-2010, 02:47 AM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] upgrade problem (1.2.2=>1.4) "field_exists function"
08-05-2008, 11:37 AM
Post: #1
[F] upgrade problem (1.2.2=>1.4) "field_exists function"
I believe that upgrade process has some mistaken usage of field_exists function:
PHP Code:
if($db->field_exists('oldadditionalgroups'TABLE_PREFIX."banned"))
    {
        
$db->write_query("ALTER TABLE ".TABLE_PREFIX."banned DROP oldadditionalgroups;");
    }
    
$db->write_query("ALTER TABLE ".TABLE_PREFIX."banned ADD oldadditionalgroups TEXT NOT NULL AFTER oldgroup"); 
upgrade8.php,ln34
table_perfix should be cleaned from first lineSmile

[Image: header.jpg]
ُPersian MyBBoard , Translations, Plugins , Mods, Themes, Templates,...
Visit this user's website Find all posts by this user
08-05-2008, 12:52 PM
Post: #2
RE: upgrade problem (1.2.2=>1.4) "field_exists function"
TABLE_PREFIX is only removed in MyBB 1.4 queries ?
That's part of the upgrade process;
People who upgrade from 1.2.2 to 1.2.14 also need to use that file where TABLE_PREFIX is still needed in those queries.

Visit this user's website Find all posts by this user
08-05-2008, 03:24 PM
Post: #3
RE: upgrade problem (1.2.2=>1.4) "field_exists function"
Please take a look at db->field_exists function in 1.4, It did use a TABLE_PREFIX inside of it, so another TABLE_PREFIX is completely wrong. Or am I wrong? Toungue

[Image: header.jpg]
ُPersian MyBBoard , Translations, Plugins , Mods, Themes, Templates,...
Visit this user's website Find all posts by this user
08-05-2008, 11:35 PM
Post: #4
RE: upgrade problem (1.2.2=>1.4) "field_exists function"
Yeh, it seems your right imei. I have no idea why that wasn't changed :\

[Image: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user
08-07-2008, 02:42 AM
Post: #5
[F] upgrade problem (1.2.2=>1.4) "field_exists function"
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

[Image: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user


Forum Jump: