[WEB - 1505] chore: alter instance id field (#4676)

* chore: instance id

* dev: update to max length
This commit is contained in:
Nikhil 2024-06-01 00:09:27 +05:30 committed by GitHub
parent f96e76dbbc
commit 6a00fcc253
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -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",

View File

@ -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)