mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-22 23:31:12 +02:00
added initial backend files
This commit is contained in:
parent
5acc05a119
commit
0b32b66888
10 changed files with 3485 additions and 2462 deletions
|
|
@ -0,0 +1,30 @@
|
|||
"""add elasticsearch connector enum
|
||||
|
||||
Revision ID: 22
|
||||
Revises: 21
|
||||
Create Date: 2025-09-30 12:00:00.000000
|
||||
|
||||
"""
|
||||
# import sqlalchemy as sa
|
||||
|
||||
from alembic import op
|
||||
|
||||
# revision identifiers
|
||||
revision = "22_add_elasticsearch_connector_enums"
|
||||
down_revision = "21_add_luma_connector_enums"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# Add ELASTICSEARCH to SearchSourceType enum
|
||||
op.execute("ALTER TYPE searchsourcetype ADD VALUE 'ELASTICSEARCH'")
|
||||
|
||||
# Add ELASTICSEARCH to DocumentType enum
|
||||
op.execute("ALTER TYPE documenttype ADD VALUE 'ELASTICSEARCH'")
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# Note: PostgreSQL doesn't support removing enum values
|
||||
# This would require recreating the enum types
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue