[2ff88f42] Full End-to-End integration: Webhooks, Auto-Enrichment, Notion-Sync, UI updates and new Connector Architecture

This commit is contained in:
2026-02-19 16:05:52 +00:00
parent 262add256f
commit 17346b3fcb
21 changed files with 1107 additions and 203 deletions

View File

@@ -0,0 +1,39 @@
import sqlite3
import os
DB_PATH = "/app/companies_v3_fixed_2.db"
# If running outside container, adjust path
if not os.path.exists(DB_PATH):
DB_PATH = "companies_v3_fixed_2.db"
def upgrade():
print(f"Upgrading database at {DB_PATH}...")
conn = sqlite3.connect(DB_PATH)
cursor = conn.cursor()
# 2. Add Columns to Contact
try:
cursor.execute("ALTER TABLE contacts ADD COLUMN so_contact_id INTEGER")
print("✅ Added column: so_contact_id")
except sqlite3.OperationalError as e:
if "duplicate column" in str(e):
print(" Column so_contact_id already exists")
else:
print(f"❌ Error adding so_contact_id: {e}")
try:
cursor.execute("ALTER TABLE contacts ADD COLUMN so_person_id INTEGER")
print("✅ Added column: so_person_id")
except sqlite3.OperationalError as e:
if "duplicate column" in str(e):
print(" Column so_person_id already exists")
else:
print(f"❌ Error adding so_person_id: {e}")
conn.commit()
conn.close()
print("Upgrade complete.")
if __name__ == "__main__":
upgrade()