[WEB-6149] migration: change estimate point key max value to 50 #8620
This commit is contained in:
parent
0887cbbda8
commit
57ce2a5429
2 changed files with 20 additions and 1 deletions
19
apps/api/plane/db/migrations/0119_alter_estimatepoint_key.py
Normal file
19
apps/api/plane/db/migrations/0119_alter_estimatepoint_key.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Generated by Django 4.2.27 on 2026-02-09 09:37
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('db', '0118_remove_workspaceuserproperties_product_tour_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='estimatepoint',
|
||||
name='key',
|
||||
field=models.IntegerField(default=0, validators=[django.core.validators.MinValueValidator(0)]),
|
||||
),
|
||||
]
|
||||
|
|
@ -38,7 +38,7 @@ class Estimate(ProjectBaseModel):
|
|||
|
||||
class EstimatePoint(ProjectBaseModel):
|
||||
estimate = models.ForeignKey("db.Estimate", on_delete=models.CASCADE, related_name="points")
|
||||
key = models.IntegerField(default=0, validators=[MinValueValidator(0), MaxValueValidator(12)])
|
||||
key = models.IntegerField(default=0, validators=[MinValueValidator(0)])
|
||||
description = models.TextField(blank=True)
|
||||
value = models.CharField(max_length=255)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue