mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user