fix+feat(everything): lot of things
Some checks failed
Deploy to Development / build-and-deploy (push) Failing after 20s
Some checks failed
Deploy to Development / build-and-deploy (push) Failing after 20s
This commit is contained in:
@@ -175,8 +175,9 @@ def init_default_settings():
|
||||
async def lifespan(app: FastAPI):
|
||||
# Startup
|
||||
print("Starting LeDiscord backend...")
|
||||
# Create tables
|
||||
Base.metadata.create_all(bind=engine)
|
||||
# Note: Database migrations are handled by Alembic
|
||||
# Run migrations manually with: alembic upgrade head
|
||||
# Base.metadata.create_all(bind=engine) # Disabled in favor of Alembic migrations
|
||||
# Initialize database with admin user
|
||||
init_database()
|
||||
# Initialize default settings
|
||||
|
||||
Reference in New Issue
Block a user