Add two fields to the version model, for tracking release dates

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;
This commit is contained in:
Magnus Hagander
2012-01-07 12:59:16 +01:00
parent 69e4a9cc50
commit 31fa6e465c

View 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