From 6a00fcc253e06d1d63c6812bbc8ec93866dbbb73 Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Sat, 1 Jun 2024 00:09:27 +0530 Subject: [PATCH] [WEB - 1505] chore: alter instance id field (#4676) * chore: instance id * dev: update to max length --- .../0002_rename_version_instance_current_version_and_more.py | 5 +++++ apiserver/plane/license/models/instance.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apiserver/plane/license/migrations/0002_rename_version_instance_current_version_and_more.py b/apiserver/plane/license/migrations/0002_rename_version_instance_current_version_and_more.py index 850f924bf..3cdea7902 100644 --- a/apiserver/plane/license/migrations/0002_rename_version_instance_current_version_and_more.py +++ b/apiserver/plane/license/migrations/0002_rename_version_instance_current_version_and_more.py @@ -14,6 +14,11 @@ class Migration(migrations.Migration): ] operations = [ + migrations.AlterField( + model_name="instance", + name="instance_id", + field=models.CharField(max_length=255, unique=True), + ), migrations.RenameField( model_name="instance", old_name="version", diff --git a/apiserver/plane/license/models/instance.py b/apiserver/plane/license/models/instance.py index 92998e1a8..fa19b4700 100644 --- a/apiserver/plane/license/models/instance.py +++ b/apiserver/plane/license/models/instance.py @@ -19,7 +19,7 @@ class Instance(BaseModel): # General informations instance_name = models.CharField(max_length=255) whitelist_emails = models.TextField(blank=True, null=True) - instance_id = models.CharField(max_length=25, unique=True) + instance_id = models.CharField(max_length=255, unique=True) license_key = models.CharField(max_length=256, null=True, blank=True) current_version = models.CharField(max_length=10) latest_version = models.CharField(max_length=10, null=True, blank=True)