Jeremy D commited on 2011-11-06 18:14:33
Showing 1 changed files, with 3 additions and 3 deletions.
... | ... |
@@ -824,7 +824,7 @@ class mbt_to_tbg extends tbg_converter |
824 | 824 |
|
825 | 825 |
$query = ' |
826 | 826 |
SELECT |
827 |
- bt.id, bt.id AS issue_no, bt.project_id, bt.summary AS title, bt.handler_id AS assigned_to, bt.duplicate_id AS duplicate_of, |
|
827 |
+ bt.id, bt.id AS issue_no, bt.project_id, bt.summary AS title, bt.reporter_id AS posted_by, bt.handler_id AS assigned_to, bt.duplicate_id AS duplicate_of, |
|
828 | 828 |
bt.date_submitted AS posted, bt.last_updated, |
829 | 829 |
0 AS state /* NEEDS FIXED */, |
830 | 830 |
1 AS issuetype /* NEEDS FIXED */, |
... | ... |
@@ -849,8 +849,8 @@ class mbt_to_tbg extends tbg_converter |
849 | 849 |
foreach ($this->mantis_db->query($query) as $row) |
850 | 850 |
{ |
851 | 851 |
$this->tbg_db->query(' |
852 |
- REPLACE INTO ' . $this->tbg_db_prefix . 'issues (id, issue_no, project_id, title, assigned_to, duplicate_of, posted, last_updated, state, issuetype, category, resolution, priority, severity, reproducability, scope) |
|
853 |
- VALUES (' . $row['id'] . ', ' . $row['issue_no'] . ', ' . $row['project_id'] . ', "' . $row['title'] . '", ' . $row['assigned_to'] . ', ' . $row['duplicate_of'] . ', ' . $row['posted'] . ', ' . $row['last_updated'] . ', ' . $row['state'] . ', ' . $row['issuetype'] . ', ' . $row['category'] . ', ' . $row['resolution'] . ', ' . $row['priority'] . ', ' . $row['severity'] . ', ' . $row['reproducability'] . ', 1) |
|
852 |
+ REPLACE INTO ' . $this->tbg_db_prefix . 'issues (id, issue_no, project_id, title, assigned_to, duplicate_of, posted, last_updated, state, issuetype, category, resolution, priority, severity, reproducability, workflow_step_id, scope) |
|
853 |
+ VALUES (' . $row['id'] . ', ' . $row['issue_no'] . ', ' . $row['project_id'] . ', "' . $row['title'] . '", ' . $row['posted_by'] . ', ' . $row['assigned_to'] . ', ' . $row['duplicate_of'] . ', ' . $row['posted'] . ', ' . $row['last_updated'] . ', ' . $row['state'] . ', ' . $row['issuetype'] . ', ' . $row['category'] . ', ' . $row['resolution'] . ', ' . $row['priority'] . ', ' . $row['severity'] . ', ' . $row['reproducability'] . ', 1, 1) |
|
854 | 854 |
'); |
855 | 855 |
|
856 | 856 |
// This attempts to find any versions that got missed, but isn't accurate. |
857 | 857 |