Skip to Content Skip to Menu

Upgrading from 1.8 to 2.4

  • jstcynske
  • jstcynske
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
13 years 3 months ago #173624 by jstcynske
Upgrading from 1.8 to 2.4 was created by jstcynske
Having issues with the upgrade from 1.8 to 2.4. I have read the read me, and am going through the steps. When I get to the update the tables part, I run into errors. I copied the 1.8-2.4 tables, and pasted them in to the query and hit go. I get errors and do not know how to make it right?

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 3 months ago #173626 by slabbi
Replied by slabbi on topic Re: Upgrading from 1.8 to 2.4
It might help to know which errors you got.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • jstcynske
  • jstcynske
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
13 years 3 months ago #173627 by jstcynske
Replied by jstcynske on topic Re: Upgrading from 1.8 to 2.4
Pasted this:
CREATE TABLE IF NOT EXISTS `jos_uddeim_attachments` (
`id` int(10) unsigned NOT NULL auto_increment,
`mid` int(1) NOT NULL default '0',
`tempname` TEXT NOT NULL,
`filename` TEXT NOT NULL,
`fileid` varchar(32) NOT NULL,
`size` int(1) NOT NULL default '0',
`datum` int(11) default NULL,
PRIMARY KEY (`id`),
KEY `mid` (`mid`),
KEY `fileid` (`fileid`),
KEY `datum` (`datum`)
) ENGINE=MyISAM;

ALTER TABLE `jos_uddeim` ADD `systemflag` INT( 1 ) NOT NULL DEFAULT '0' ;
ALTER TABLE `jos_uddeim` ADD INDEX ( `systemflag` ) ;
UPDATE `jos_uddeim` SET `systemflag` = 1 WHERE `systemmessage` != '' OR `systemmessage` IS NOT NULL ;
UPDATE `jos_uddeim` SET `systemflag` = 2 WHERE `fromid` = `toid` ;
ALTER TABLE `jos_uddeim` ADD `delayed` INT( 1 ) NOT NULL DEFAULT '0' ;
ALTER TABLE `jos_uddeim` ADD INDEX ( `delayed` ) ;
ALTER TABLE `jos_uddeim_emn` ADD `moderated` INT( 1 ) NOT NULL DEFAULT '0' ;

Got the below error:
Error

SQL query:

CREATE TABLE IF NOT EXISTS `jos_uddeim_attachments` (
`id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
`mid` int( 1 ) NOT NULL default '0',
`tempname` TEXT NOT NULL ,
`filename` TEXT NOT NULL ,
`fileid` varchar( 32 ) NOT NULL ,
`size` int( 1 ) NOT NULL default '0',
`datum` int( 11 ) default NULL ,
PRIMARY KEY ( `id` ) ,
KEY `mid` ( `mid` ) ,
KEY `fileid` ( `fileid` ) ,
KEY `datum` ( `datum` )
) ENGINE = MYISAM ;

MySQL said: Documentation
#1046 - No database selected

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 3 months ago #173628 by slabbi
Replied by slabbi on topic Re: Upgrading from 1.8 to 2.4
#1046 - No database selected

Before you execute the SQL commands select the database you want to modify. In the FAQ you will find a step by step guide.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • jstcynske
  • jstcynske
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
13 years 3 months ago #173640 by jstcynske
Replied by jstcynske on topic Re: Upgrading from 1.8 to 2.4
Ok, sorry about that. I picked the database and now I get this error...

SQL query:

ALTER TABLE `jos_uddeim` ADD `systemflag` INT( 1 ) NOT NULL DEFAULT '0';

MySQL said: Documentation
#1146 - Table 'strother_jml02.jos_uddeim' doesn't exist

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 3 months ago #173641 by slabbi
Replied by slabbi on topic Re: Upgrading from 1.8 to 2.4
Do you use a different prefix? If so change "jos_xxxxx" to "YOURPREFIX_xxxxxx" in all SQL commands.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum