group chat name length

This commit is contained in:
mihalin 2021-09-17 11:56:38 +03:00
parent 709a021c79
commit 9b195cdbd3
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
-- upgrade --
ALTER TABLE "group_chat" ALTER COLUMN "name" TYPE VARCHAR(255) USING "name"::VARCHAR(255);
-- downgrade --
ALTER TABLE "group_chat" ALTER COLUMN "name" TYPE VARCHAR(50) USING "name"::VARCHAR(50);

View File

@ -42,7 +42,7 @@ class User(Model):
class GroupChat(Model):
id = fields.IntField(pk=True)
chat_id = fields.BigIntField(index=True, unique=True)
name = fields.CharField(max_length=50)
name = fields.CharField(max_length=255)
class Meta:
table = 'group_chat'