mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-22 20:09:54 +00:00
fix: 修改工单迁移文件warining问题
Any fields that are stored with VARCHAR column types may have their max_length restricted to 255 characters if you are using unique=True for the field. See: https://docs.djangoproject.com/en/3.1/ref/databases/#mysql-character-fields
This commit is contained in:
@@ -77,7 +77,7 @@ class Ticket(CommonModelMixin, OrgModelMixin):
|
||||
'TicketFlow', related_name='tickets', on_delete=models.SET_NULL, null=True,
|
||||
verbose_name=_("TicketFlow")
|
||||
)
|
||||
serial_num = models.CharField(max_length=256, unique=True, null=True, verbose_name=_('Serial number'))
|
||||
serial_num = models.CharField(max_length=128, unique=True, null=True, verbose_name=_('Serial number'))
|
||||
|
||||
class Meta:
|
||||
ordering = ('-date_created',)
|
||||
|
Reference in New Issue
Block a user