Initial commit: AutonetSellCar platform with deployment system
- Frontend: Next.js 14 with TypeScript - Backend: FastAPI with SQLAlchemy - Agent: Carmodoo sync agent - Deployment: Docker Compose based staging/production setup - Scripts: Automated deployment with rollback support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
21
backend/add_pdf_path_column.py
Normal file
21
backend/add_pdf_path_column.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""Add pdf_path column to car_performance_checks table"""
|
||||
import sqlite3
|
||||
import os
|
||||
|
||||
os.chdir(r'D:\Workspace\claudeCode\AutonetSellCar.com\backend')
|
||||
conn = sqlite3.connect('autonet.db')
|
||||
cursor = conn.cursor()
|
||||
|
||||
# Check if column already exists
|
||||
cursor.execute('PRAGMA table_info(car_performance_checks)')
|
||||
columns = [col[1] for col in cursor.fetchall()]
|
||||
|
||||
if 'pdf_path' not in columns:
|
||||
print("Adding pdf_path column...")
|
||||
cursor.execute('ALTER TABLE car_performance_checks ADD COLUMN pdf_path VARCHAR(500)')
|
||||
conn.commit()
|
||||
print("pdf_path column added successfully!")
|
||||
else:
|
||||
print("pdf_path column already exists")
|
||||
|
||||
conn.close()
|
||||
Reference in New Issue
Block a user