@@ -63,6 +63,9 @@ class Project(models.Model):
name = models.CharField(max_length=255, unique=True)
listid = models.CharField(max_length=255, unique=True)
listemail = models.CharField(max_length=200)
+ source_tree = models.CharField(max_length=300, blank=True, null=True)
+ last_seen_commit_ref = models.CharField(max_length=255, blank=True,
+ null=True)
def __unicode__(self):
return self.name
new file mode 100644
@@ -0,0 +1,4 @@
+BEGIN;
+ALTER TABLE patchwork_project ADD column source_tree varchar(300);
+ALTER TABLE patchwork_project ADD column last_seen_commit_ref varchar(255);
+COMMIT;
Signed-off-by: Guilherme Salgado <guilherme.salgado@linaro.org> --- apps/patchwork/models.py | 3 +++ lib/sql/migration/008-project-source-tree.sql | 4 ++++ 2 files changed, 7 insertions(+), 0 deletions(-) create mode 100644 lib/sql/migration/008-project-source-tree.sql