[ews-app] Set Foreign Key in Django build model
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Feb 2019 22:08:58 +0000 (22:08 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Feb 2019 22:08:58 +0000 (22:08 +0000)
https://bugs.webkit.org/show_bug.cgi?id=194667

Reviewed by Lucas Forschler.

* BuildSlaveSupport/ews-app/ews/models/build.py:
(Build):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241561 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/ews-app/ews/models/build.py
Tools/ChangeLog

index 65eea88..7b3052c 100644 (file)
@@ -26,6 +26,7 @@ import logging
 
 from django.db import models
 from ews.config import ERR_UNEXPECTED, SUCCESS
+from ews.models.buildermapping import BuilderMapping
 from ews.models.patch import Patch
 import ews.common.util as util
 
@@ -35,7 +36,7 @@ _log = logging.getLogger(__name__)
 class Build(models.Model):
     patch = models.ForeignKey(Patch, on_delete=models.CASCADE)
     build_id = models.IntegerField(primary_key=True)
-    builder_id = models.IntegerField()
+    builder = models.ForeignKey(BuilderMapping, on_delete=models.DO_NOTHING)
     number = models.IntegerField()
     result = models.IntegerField(null=True, blank=True)
     state_string = models.TextField()
index 673899d..628fc56 100644 (file)
@@ -1,3 +1,13 @@
+2019-02-14  Aakash Jain  <aakash_jain@apple.com>
+
+        [ews-app] Set Foreign Key in Django build model
+        https://bugs.webkit.org/show_bug.cgi?id=194667
+
+        Reviewed by Lucas Forschler.
+
+        * BuildSlaveSupport/ews-app/ews/models/build.py:
+        (Build):
+
 2019-02-14  Ross Kirsling  <ross.kirsling@sony.com>
 
         [WTF] Add environment variable helpers