fix: Fix import path in slug migration
This commit is contained in:
parent
3edbcdeb64
commit
a12f7fa8b0
1 changed files with 2 additions and 1 deletions
|
|
@ -3,7 +3,8 @@ Migration script to add slug columns and generate slugs for existing data
|
|||
"""
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
# Add parent directory (backend/) to path for imports
|
||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
from sqlmodel import create_engine, Session, select, text
|
||||
from slugify import generate_slug, generate_show_slug, generate_performance_slug
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue