mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 13:25:11 +00:00
Add a migration for allowing the docx field in the entries file type
This commit is contained in:
31
src/khoj/database/migrations/0047_alter_entry_file_type.py
Normal file
31
src/khoj/database/migrations/0047_alter_entry_file_type.py
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# Generated by Django 4.2.11 on 2024-06-21 04:17
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
dependencies = [
|
||||||
|
("database", "0046_khojuser_email_verification_code_and_more"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="entry",
|
||||||
|
name="file_type",
|
||||||
|
field=models.CharField(
|
||||||
|
choices=[
|
||||||
|
("image", "Image"),
|
||||||
|
("pdf", "Pdf"),
|
||||||
|
("plaintext", "Plaintext"),
|
||||||
|
("markdown", "Markdown"),
|
||||||
|
("org", "Org"),
|
||||||
|
("notion", "Notion"),
|
||||||
|
("github", "Github"),
|
||||||
|
("conversation", "Conversation"),
|
||||||
|
("docx", "Docx"),
|
||||||
|
],
|
||||||
|
default="plaintext",
|
||||||
|
max_length=30,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user