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
48ed7019
Commit
48ed7019
authored
Apr 27, 2024
by
Timothy J. Baek
Browse files
fix
parent
5e97c992
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
backend/apps/web/internal/migrations/001_initial_schema.py
backend/apps/web/internal/migrations/001_initial_schema.py
+5
-5
No files found.
backend/apps/web/internal/migrations/001_initial_schema.py
View file @
48ed7019
...
@@ -65,7 +65,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False):
...
@@ -65,7 +65,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False):
user_id
=
pw
.
CharField
(
max_length
=
255
)
user_id
=
pw
.
CharField
(
max_length
=
255
)
title
=
pw
.
CharField
()
title
=
pw
.
CharField
()
chat
=
pw
.
TextField
()
chat
=
pw
.
TextField
()
timestamp
=
pw
.
Date
Field
()
timestamp
=
pw
.
BigInteger
Field
()
class
Meta
:
class
Meta
:
table_name
=
"chat"
table_name
=
"chat"
...
@@ -76,7 +76,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False):
...
@@ -76,7 +76,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False):
tag_name
=
pw
.
CharField
(
max_length
=
255
)
tag_name
=
pw
.
CharField
(
max_length
=
255
)
chat_id
=
pw
.
CharField
(
max_length
=
255
)
chat_id
=
pw
.
CharField
(
max_length
=
255
)
user_id
=
pw
.
CharField
(
max_length
=
255
)
user_id
=
pw
.
CharField
(
max_length
=
255
)
timestamp
=
pw
.
Date
Field
()
timestamp
=
pw
.
BigInteger
Field
()
class
Meta
:
class
Meta
:
table_name
=
"chatidtag"
table_name
=
"chatidtag"
...
@@ -90,7 +90,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False):
...
@@ -90,7 +90,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False):
filename
=
pw
.
CharField
()
filename
=
pw
.
CharField
()
content
=
pw
.
TextField
(
null
=
True
)
content
=
pw
.
TextField
(
null
=
True
)
user_id
=
pw
.
CharField
(
max_length
=
255
)
user_id
=
pw
.
CharField
(
max_length
=
255
)
timestamp
=
pw
.
Date
Field
()
timestamp
=
pw
.
BigInteger
Field
()
class
Meta
:
class
Meta
:
table_name
=
"document"
table_name
=
"document"
...
@@ -101,7 +101,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False):
...
@@ -101,7 +101,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False):
tag_name
=
pw
.
CharField
(
max_length
=
255
,
unique
=
True
)
tag_name
=
pw
.
CharField
(
max_length
=
255
,
unique
=
True
)
user_id
=
pw
.
CharField
(
max_length
=
255
)
user_id
=
pw
.
CharField
(
max_length
=
255
)
modelfile
=
pw
.
TextField
()
modelfile
=
pw
.
TextField
()
timestamp
=
pw
.
Date
Field
()
timestamp
=
pw
.
BigInteger
Field
()
class
Meta
:
class
Meta
:
table_name
=
"modelfile"
table_name
=
"modelfile"
...
@@ -113,7 +113,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False):
...
@@ -113,7 +113,7 @@ def migrate_sqlite(migrator: Migrator, database: pw.Database, *, fake=False):
user_id
=
pw
.
CharField
(
max_length
=
255
)
user_id
=
pw
.
CharField
(
max_length
=
255
)
title
=
pw
.
CharField
()
title
=
pw
.
CharField
()
content
=
pw
.
TextField
()
content
=
pw
.
TextField
()
timestamp
=
pw
.
Date
Field
()
timestamp
=
pw
.
BigInteger
Field
()
class
Meta
:
class
Meta
:
table_name
=
"prompt"
table_name
=
"prompt"
...
...
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