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