From 48ed70196071ff05e127fbf7f372edbadb05e002 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 27 Apr 2024 19:44:36 -0700 Subject: [PATCH] fix --- .../apps/web/internal/migrations/001_initial_schema.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/apps/web/internal/migrations/001_initial_schema.py b/backend/apps/web/internal/migrations/001_initial_schema.py index cf75b313e..93f278f15 100644 --- a/backend/apps/web/internal/migrations/001_initial_schema.py +++ b/backend/apps/web/internal/migrations/001_initial_schema.py @@ -65,7 +65,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False): user_id = pw.CharField(max_length=255) title = pw.CharField() chat = pw.TextField() - timestamp = pw.DateField() + timestamp = pw.BigIntegerField() class Meta: table_name = "chat" @@ -76,7 +76,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False): tag_name = pw.CharField(max_length=255) chat_id = pw.CharField(max_length=255) user_id = pw.CharField(max_length=255) - timestamp = pw.DateField() + timestamp = pw.BigIntegerField() class Meta: table_name = "chatidtag" @@ -90,7 +90,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False): filename = pw.CharField() content = pw.TextField(null=True) user_id = pw.CharField(max_length=255) - timestamp = pw.DateField() + timestamp = pw.BigIntegerField() class Meta: table_name = "document" @@ -101,7 +101,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False): tag_name = pw.CharField(max_length=255, unique=True) user_id = pw.CharField(max_length=255) modelfile = pw.TextField() - timestamp = pw.DateField() + timestamp = pw.BigIntegerField() class Meta: table_name = "modelfile" @@ -113,7 +113,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False): user_id = pw.CharField(max_length=255) title = pw.CharField() content = pw.TextField() - timestamp = pw.DateField() + timestamp = pw.BigIntegerField() class Meta: table_name = "prompt"