adding new fields to Personas
This commit is contained in:
Родитель
420e8aee32
Коммит
1c567ffe13
|
@ -356,6 +356,10 @@ class Persona(caching.base.CachingMixin, models.Model):
|
|||
submit = models.DateTimeField(null=True)
|
||||
approve = models.DateTimeField(null=True)
|
||||
|
||||
movers = models.FloatField(null=True)
|
||||
popularity = models.IntegerField(null=True)
|
||||
license = models.ForeignKey('versions.License', null=True)
|
||||
|
||||
objects = caching.base.CachingManager()
|
||||
|
||||
class Meta:
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
ALTER TABLE personas
|
||||
ADD COLUMN `movers` double precision,
|
||||
ADD COLUMN `popularity` integer,
|
||||
ADD COLUMN `license_id` int(11) unsigned,
|
||||
ADD CONSTRAINT FOREIGN KEY (`license_id`) REFERENCES `licenses` (`id`);
|
Загрузка…
Ссылка в новой задаче