From b76e9341403b1334cda1e2408b789fe5e7158d3c Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 2 Apr 2024 06:27:11 -0700 Subject: [PATCH] Update 001_initial_schema.py --- .../apps/web/internal/migrations/001_initial_schema.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/apps/web/internal/migrations/001_initial_schema.py b/backend/apps/web/internal/migrations/001_initial_schema.py index 7ab552f36..24ea6d39f 100644 --- a/backend/apps/web/internal/migrations/001_initial_schema.py +++ b/backend/apps/web/internal/migrations/001_initial_schema.py @@ -51,7 +51,7 @@ def migrate(migrator: Migrator, database: pw.Database, *, fake=False): class Chat(pw.Model): id = pw.CharField(max_length=255, unique=True) user_id = pw.CharField(max_length=255) - title = pw.CharField(max_length=255) + title = pw.CharField() chat = pw.TextField() timestamp = pw.DateField() @@ -74,8 +74,8 @@ def migrate(migrator: Migrator, database: pw.Database, *, fake=False): id = pw.AutoField() collection_name = pw.CharField(max_length=255, unique=True) name = pw.CharField(max_length=255, unique=True) - title = pw.CharField(max_length=255) - filename = pw.CharField(max_length=255) + title = pw.CharField() + filename = pw.CharField() content = pw.TextField(null=True) user_id = pw.CharField(max_length=255) timestamp = pw.DateField() @@ -99,7 +99,7 @@ def migrate(migrator: Migrator, database: pw.Database, *, fake=False): id = pw.AutoField() command = pw.CharField(max_length=255, unique=True) user_id = pw.CharField(max_length=255) - title = pw.CharField(max_length=255) + title = pw.CharField() content = pw.TextField() timestamp = pw.DateField()