[ews-app] Set db_constraint to False for Foreign Keys
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Mar 2019 17:13:30 +0000 (17:13 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Mar 2019 17:13:30 +0000 (17:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196252

Reviewed by Lucas Forschler.

* BuildSlaveSupport/ews-app/ews/models/build.py:
* BuildSlaveSupport/ews-app/ews/models/step.py:

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

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

index 9e68c6f..890c423 100644 (file)
@@ -34,7 +34,7 @@ _log = logging.getLogger(__name__)
 
 
 class Build(models.Model):
-    patch = models.ForeignKey(Patch, on_delete=models.CASCADE)
+    patch = models.ForeignKey(Patch, on_delete=models.CASCADE, db_constraint=False)
     uid = models.TextField(primary_key=True)
     builder_id = models.IntegerField()
     builder_name = models.TextField()
index bfe584d..f36ef85 100644 (file)
@@ -35,7 +35,7 @@ _log = logging.getLogger(__name__)
 
 class Step(models.Model):
     uid = models.TextField(primary_key=True)
-    build_uid = models.ForeignKey(Build, on_delete=models.CASCADE, db_column='build_uid')
+    build_uid = models.ForeignKey(Build, on_delete=models.CASCADE, db_column='build_uid', db_constraint=False)
     result = models.IntegerField(null=True, blank=True)
     state_string = models.TextField()
     started_at = models.IntegerField(null=True, blank=True)
index d83f3ae..bf2db8e 100644 (file)
@@ -1,5 +1,15 @@
 2019-03-26  Aakash Jain  <aakash_jain@apple.com>
 
+        [ews-app] Set db_constraint to False for Foreign Keys
+        https://bugs.webkit.org/show_bug.cgi?id=196252
+
+        Reviewed by Lucas Forschler.
+
+        * BuildSlaveSupport/ews-app/ews/models/build.py:
+        * BuildSlaveSupport/ews-app/ews/models/step.py:
+
+2019-03-26  Aakash Jain  <aakash_jain@apple.com>
+
         [ews-build] is_test_mode_enabled should default to True
         https://bugs.webkit.org/show_bug.cgi?id=196248