From 69d41c396ea4c2a40583649e658384e9cd9be534 Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Fri, 3 May 2024 19:37:09 +0530 Subject: [PATCH] dev: add start date and end date to projects (#4355) --- .../plane/db/migrations/0065_auto_20240415_0937.py | 10 ++++++++++ apiserver/plane/db/models/project.py | 2 ++ 2 files changed, 12 insertions(+) diff --git a/apiserver/plane/db/migrations/0065_auto_20240415_0937.py b/apiserver/plane/db/migrations/0065_auto_20240415_0937.py index 9d8cc50be..9203450b2 100644 --- a/apiserver/plane/db/migrations/0065_auto_20240415_0937.py +++ b/apiserver/plane/db/migrations/0065_auto_20240415_0937.py @@ -213,6 +213,16 @@ class Migration(migrations.Migration): }, ), migrations.RunPython(migrate_user_profile), + migrations.AddField( + model_name="project", + name="end_date", + field=models.DateField(blank=True, null=True), + ), + migrations.AddField( + model_name="project", + name="start_date", + field=models.DateField(blank=True, null=True), + ), migrations.RemoveField( model_name="user", name="billing_address", diff --git a/apiserver/plane/db/models/project.py b/apiserver/plane/db/models/project.py index 49fca1323..e695f42c3 100644 --- a/apiserver/plane/db/models/project.py +++ b/apiserver/plane/db/models/project.py @@ -115,6 +115,8 @@ class Project(BaseModel): related_name="default_state", ) archived_at = models.DateTimeField(null=True) + start_date = models.DateField(null=True, blank=True) + end_date = models.DateField(null=True, blank=True) def __str__(self): """Return name of the project"""