From patchwork Fri Mar 25 18:44:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Add a source_tree field to Project. Date: Fri, 25 Mar 2011 08:44:47 -0000 From: Guilherme Salgado X-Patchwork-Id: 88409 Message-Id: <20110325184447.9285.85528.stgit@localhost6.localdomain6> To: patchwork@lists.ozlabs.org Cc: patches@linaro.org Signed-off-by: Guilherme Salgado --- apps/patchwork/models.py | 1 + lib/sql/migration/008-project-source-tree.sql | 3 +++ 2 files changed, 4 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 3d3490d..14d6ba7 100644 --- a/apps/patchwork/models.py +++ b/apps/patchwork/models.py @@ -64,6 +64,7 @@ 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) 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..1e8bd52 --- /dev/null +++ b/lib/sql/migration/008-project-source-tree.sql @@ -0,0 +1,3 @@ +BEGIN; +ALTER TABLE patchwork_project ADD column source_tree varchar(300); +COMMIT;