From patchwork Wed May 11 10:09:56 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [V2] Add a source_tree field to Project. From: Guilherme Salgado X-Patchwork-Id: 95120 Message-Id: <20110511100943.23926.99265.stgit@localhost6.localdomain6> To: patchwork@lists.ozlabs.org Cc: patches@linaro.org Date: Wed, 11 May 2011 12:09:56 +0200 Signed-off-by: Guilherme Salgado --- 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 diff --git a/apps/patchwork/models.py b/apps/patchwork/models.py index 6a7ffc5..2b5d429 100644 --- a/apps/patchwork/models.py +++ b/apps/patchwork/models.py @@ -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 diff --git a/lib/sql/migration/008-project-source-tree.sql b/lib/sql/migration/008-project-source-tree.sql new file mode 100644 index 0000000..32b679c --- /dev/null +++ b/lib/sql/migration/008-project-source-tree.sql @@ -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;