Add two fields to the version model, for tracking release dates
authorMagnus Hagander <magnus@hagander.net>
Sat, 7 Jan 2012 11:59:16 +0000 (12:59 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sat, 7 Jan 2012 12:00:23 +0000 (13:00 +0100)
This requires the following to be run on all developer installations:

alter table core_version add column "firstreldate" date NOT NULL default current_date;
alter table core_version add column "eoldate" date NOT NULL default current_date;
alter table core_version alter column "firstreldate" drop default;
alter table core_version alter column "eoldate" drop default;

pgweb/core/models.py

index ccc4d65f0c264ac923e565afc91295ffae4fc154..688c6c4964481224c7e7f9b264d20ca53467922f 100644 (file)
@@ -13,6 +13,8 @@ class Version(PgModel, models.Model):
        current = models.BooleanField(null=False, blank=False, default=False)
        supported = models.BooleanField(null=False, blank=False, default=True)
        docsloaded = models.DateTimeField(null=True, blank=True, help_text="The timestamp of the latest docs load. Really only used for developer docs for now, but set for all of them.")
+       firstreldate = models.DateField(null=False, blank=False, help_text="The date of the .0 release in this tree")
+       eoldate = models.DateField(null=False, blank=False, help_text="The planned EOL date for this tree")
 
        def __unicode__(self):
                return self.versionstring