1
0
mirror of https://github.com/civsocit/olgram.git synced 2025-05-24 06:23:29 +00:00
This commit is contained in:
er8dd 2024-03-22 03:46:34 +04:00
commit 0ceea778fe
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
-- upgrade --
ALTER TABLE "bot_start_message" ALTER COLUMN "locale" TYPE VARCHAR(15) USING "locale"::VARCHAR(15);
-- downgrade --
ALTER TABLE "bot_start_message" ALTER COLUMN "locale" TYPE VARCHAR(5) USING "locale"::VARCHAR(5);

View File

@ -77,7 +77,7 @@ class Bot(Model):
class BotStartMessage(Model):
id = fields.IntField(pk=True)
bot = fields.ForeignKeyField("models.Bot", related_name="start_texts", on_delete=fields.CASCADE)
locale = fields.CharField(max_length=5)
locale = fields.CharField(max_length=15)
text = fields.TextField()
class Meta: