Skip to content

Commit

Permalink
Bug 1265503 - Rename column for datasource job id
Browse files Browse the repository at this point in the history
  • Loading branch information
wlach committed Nov 16, 2016
1 parent e707848 commit ce4903c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions treeherder/perf/migrations/0024_rename_ds_job_id_column.py
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('perf', '0023_push_and_commit_orm_2'),
]

operations = [
migrations.AlterField(
model_name='performancedatum',
name='job_id',
field=models.PositiveIntegerField(db_column=b'ds_job_id'),
),
]
2 changes: 1 addition & 1 deletion treeherder/perf/models.py
Expand Up @@ -85,7 +85,7 @@ def __str__(self):
class PerformanceDatum(models.Model):

repository = models.ForeignKey(Repository)
job_id = models.PositiveIntegerField()
job_id = models.PositiveIntegerField(db_column="ds_job_id")
result_set_id = models.PositiveIntegerField(null=True)
push = models.ForeignKey(Push)
signature = models.ForeignKey(PerformanceSignature)
Expand Down

0 comments on commit ce4903c

Please sign in to comment.