Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
[Solved] Upgrade SQL error (1 viewing) (1) Guest
TOPIC: [Solved] Upgrade SQL error
#20290
Re:Upgrade SQL error 1 Year, 4 Months ago  
Duplice means the structure exists...the way the SQL statement is trying to change it to. So, no it should be fine.
palebluedot (Moderator)
FB Documentation Team
Template Documentation Project
Moderator
Posts: 622
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Minneapolis, MN US Birthdate: 1973-01-12
Logged Logged
 
 
 
#20384
Re:Upgrade SQL error 1 Year, 4 Months ago  
i have this also


MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--( ___ )------------------------------------------( ___ )
-- | / | ' at line 1


i'm running it as an sql query ..
damo (User)
Junior Boarder
Posts: 42
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
 
#20400
Re:Upgrade SQL error 1 Year, 4 Months ago  
ok. i removed this from the sql file:

-- __^__ __^__
--( ___ )------------------------------------------( ___ )
-- | / | SQL Upgrade | |
-- | / | Fireboard 1.0.1 to 1.0.3 Stable | |
-- |___| Rename jos_ to your db prefix |___|
--(_____)------------------------------------------(_____)
--


and ran teh script again and it worked ...
damo (User)
Junior Boarder
Posts: 42
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
 
#20427
Re:Upgrade SQL error 1 Year, 4 Months ago  
I get the error

[code:1]#1054 - Unknown column 'uhits' in 'jos_fb_users' [/code:1]

Upgrading from 1.0.1b

Thanks
gwmbox (User)
:) I like Smilies :)
Junior Boarder
Posts: 78
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dogsites dogsites@hotmail.com Location: Perth Western Australia
Logged Logged
 
-------------------------------------
Computer Nut and Web Designer
 
 
#20428
Re:Upgrade SQL error 1 Year, 4 Months ago  
Its OK had a look at the 1.0.0 upgrade and used that and seems to have worked - but I know I installed 1.0.1b??

Cheers anyway
gwmbox (User)
:) I like Smilies :)
Junior Boarder
Posts: 78
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dogsites dogsites@hotmail.com Location: Perth Western Australia
Logged Logged
 
-------------------------------------
Computer Nut and Web Designer
 
 
#20436
Re:Upgrade SQL error 1 Year, 4 Months ago  
palebluedot wrote:
PGLion and ntzeke. Any progress on your issues?

I manually checked all tables and columns and found out I missed several lines. After adding those missing lines everything works likes a charm, except the ranks part but I am still investigating that.
PGLion (User)
FireBoards Rulez!
Junior Boarder
Posts: 66
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: The Netherlands Birthdate: 1970-08-04
Logged Logged
 
 
#20550
Re:Upgrade SQL error 1 Year, 4 Months ago  
gwmbox wrote:
[quote]I get the error

[code:1]#1054 - Unknown column 'uhits' in 'jos_fb_users' [/code:1]

Upgrading from 1.0.1b

Thanks[/quote]

There is 2 columns missed (group_id and uhits) from 1.0.1b to 1.0.3

So it should like this:

[code:1]alter table `jos_fb_users`
add column `group_id` int(4) NULL DEFAULT '1' after `karma_time`,
add column `uhits` int(11) NULL DEFAULT '0' after `group_id`,
add column `personalText` tinytext NULL after `uhits`,
add column `gender` tinyint(4) NOT NULL DEFAULT '0' after `personalText`,
add column `birthdate` date NOT NULL DEFAULT '0000-00-00' after `gender`,
add column `location` varchar(50) NULL after `birthdate`,
add column `ICQ` varchar(50) NULL after `location`,
add column `AIM` varchar(50) NULL after `ICQ`,
add column `YIM` varchar(50) NULL after `AIM`,
add column `MSN` varchar(50) NULL after `YIM`,
add column `SKYPE` varchar(50) NULL after `MSN`,
add column `hideEmail` tinyint(1) NOT NULL DEFAULT '1' after `SKYPE`,
add column `showOnline` tinyint(1) NOT NULL DEFAULT '1' after `hideEmail`,
add column `rank` tinyint(4) NOT NULL DEFAULT '0' after `showOnline`,
add column `GTALK` varchar(50) NULL after `rank`,
add column `websitename` varchar(50) NULL after `GTALK`,
add column `websiteurl` varchar(50) NULL after `websitename`, COMMENT='';[/code:1]
mikeho1980 (User)
Junior Boarder
Posts: 74
graphgraph
User Offline Click here to see the profile of this user
ICQ#: 124373717 Gender: Male mikeho1980 Dog Neighbor mikeho1980 mikeho1980 mikeho1980 Location: Hong Kong Birthdate: 1980-01-01
Logged Logged
 
Last Edit: 2007/09/06 17:05 By mikeho1980.
 
Dog Neighbor ; Joomla v1.0.12 UTF-8 Traditional Chinese; Fireboard v1.0.1 BETA; PHP 5.2.0 Apache 2.0 mySQL 5.0.27 utf8_general; Internet Explorer 7.0.5730.11 Firefox 2.0.0.11
Fireboard Traditional Chinese Translator
 
 
#20999
Re:Upgrade SQL error 1 Year, 4 Months ago  
note that 1.0.1 beta was mistakenly placed as 1.0.0 so uhhh make sure you had 1.0.1 beta.

other then that, i had issues with the comments as well. what i did was remove the comments, copy paste the code and let it execute instead of uploading it. so hope that helps
skyxliner (User)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Running Joomla 1.0.13 with Fireboard 1.0.3
 
 
#21013
Re:Upgrade SQL error 1 Year, 4 Months ago  
[quote]

There is 2 columns missed (group_id and uhits) from 1.0.1b to 1.0.3

So it should like this:

[code:1]alter table `jos_fb_users`
add column `group_id` int(4) NULL DEFAULT '1' after `karma_time`,
add column `uhits` int(11) NULL DEFAULT '0' after `group_id`,
add column `personalText` tinytext NULL after `uhits`,
add column `gender` tinyint(4) NOT NULL DEFAULT '0' after `personalText`,
add column `birthdate` date NOT NULL DEFAULT '0000-00-00' after `gender`,
add column `location` varchar(50) NULL after `birthdate`,
add column `ICQ` varchar(50) NULL after `location`,
add column `AIM` varchar(50) NULL after `ICQ`,
add column `YIM` varchar(50) NULL after `AIM`,
add column `MSN` varchar(50) NULL after `YIM`,
add column `SKYPE` varchar(50) NULL after `MSN`,
add column `hideEmail` tinyint(1) NOT NULL DEFAULT '1' after `SKYPE`,
add column `showOnline` tinyint(1) NOT NULL DEFAULT '1' after `hideEmail`,
add column `rank` tinyint(4) NOT NULL DEFAULT '0' after `showOnline`,
add column `GTALK` varchar(50) NULL after `rank`,
add column `websitename` varchar(50) NULL after `GTALK`,
add column `websiteurl` varchar(50) NULL after `websitename`, COMMENT='';[/code:1][/quote]

I wonder how did they miss that? This should definately be placed in the updgrad .sql file
harrygg (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#21160
Re:[Solved] Upgrade SQL error 1 Year, 4 Months ago  
Yes, remove the header, remove the comment

And if you get error for something cannot found "uhits" and "group_id" add the 2 missed columns, execute via phpadmin, that is.
mikeho1980 (User)
Junior Boarder
Posts: 74
graphgraph
User Offline Click here to see the profile of this user
ICQ#: 124373717 Gender: Male mikeho1980 Dog Neighbor mikeho1980 mikeho1980 mikeho1980 Location: Hong Kong Birthdate: 1980-01-01
Logged Logged
 
Dog Neighbor ; Joomla v1.0.12 UTF-8 Traditional Chinese; Fireboard v1.0.1 BETA; PHP 5.2.0 Apache 2.0 mySQL 5.0.27 utf8_general; Internet Explorer 7.0.5730.11 Firefox 2.0.0.11
Fireboard Traditional Chinese Translator
 
 
Go to top