I had assumed this was the same error you PM'd me about. Just noticed this is a different error.
--------------- Added [DATE]1293647709[/DATE] at [TIME]1293647709[/TIME] ---------------
Quote:
Originally Posted by jluerken
I just tried to update vbproject and got this db error.
Database error during vbProject update 2.1.1 to 2.1.2
Database error in vBulletin 4.0.8:
Invalid SQL:
CREATE TABLE vb305_pt_issuestatusprojectset (
issuestatusid INT UNSIGNED NOT NULL DEFAULT 0,
projectid INT UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (issuestatusid, projectid)
);
MySQL Error : Table 'vb305_pt_issuestatusprojectset' already exists
Error Number : 1050
Request Date : Wednesday, 29.12.2010 @ 13:30:30
Error Date : Wednesday, 29.12.2010 @ 13:30:30
Script : http://www.tld.com/forum/admincp/plu...=productimport
Referrer : http://www.tld.com/forum/admincp/plu...?do=productadd
Classname : vB_Database
MySQL Version : 5.1.49-2
|
This error ^
--------------- Added [DATE]1293649681[/DATE] at [TIME]1293649681[/TIME] ---------------
Warning! I haven't been able to test this, but this might fix your issue.
line 1196
Change this:
$db->query_write("
INSERT INTO " . TABLE_PREFIX . "pt_issueimport
(contenttypeid, contentid, data)
VALUES
($contenttypeid, " . $movedthread['threadid'] . ", '" . $importdata . "')
");
To:
$db->query_write("
INSERT INTO " . TABLE_PREFIX . "pt_issueimport
(issueid, contenttypeid, contentid, data)
VALUES
($movedthread['pt_issueid'], $contenttypeid, " . $movedthread['threadid'] . ", '" . $importdata . "')
");