summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/bin/migrate-github-pull-requests.pl
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/BMO/bin/migrate-github-pull-requests.pl')
-rwxr-xr-xextensions/BMO/bin/migrate-github-pull-requests.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/BMO/bin/migrate-github-pull-requests.pl b/extensions/BMO/bin/migrate-github-pull-requests.pl
index de71a7856..1d84352a2 100755
--- a/extensions/BMO/bin/migrate-github-pull-requests.pl
+++ b/extensions/BMO/bin/migrate-github-pull-requests.pl
@@ -65,7 +65,7 @@ foreach my $attachment (@$attachments) {
$dbh->do(
"UPDATE attachments SET mimetype = ? WHERE attach_id = ?",
undef,
- GITHUB_PR_CONTENT_TYPE, $attachment->{attach_id}
+ 'text/x-github-pull-request', $attachment->{attach_id}
);
# insert into bugs_activity
@@ -75,7 +75,7 @@ foreach my $attachment (@$attachments) {
VALUES (?, ?, ?, ?, ?, ?)",
undef,
$attachment->{bug_id}, $nobody->id, $timestamp, $field->id,
- $attachment->{mimetype}, GITHUB_PR_CONTENT_TYPE
+ $attachment->{mimetype}, 'text/x-github-pull-request'
);
$dbh->do(
"UPDATE bugs SET delta_ts = ?, lastdiffed = ? WHERE bug_id = ?",