Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
488301f1
Commit
488301f1
authored
Apr 02, 2024
by
Timothy J. Baek
Browse files
Update 001_initial_schema.py
parent
287c95e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
backend/apps/web/internal/migrations/001_initial_schema.py
backend/apps/web/internal/migrations/001_initial_schema.py
+4
-4
No files found.
backend/apps/web/internal/migrations/001_initial_schema.py
View file @
488301f1
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment