mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
group chat name length
This commit is contained in:
parent
709a021c79
commit
9b195cdbd3
4
olgram/migrations/models/3_20210917115559_update.sql
Normal file
4
olgram/migrations/models/3_20210917115559_update.sql
Normal 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);
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user