
import sqlite3

def fix_tech_id():
    db_path = '/app/companies_v3_fixed_2.db'
    conn = sqlite3.connect(db_path)
    cursor = conn.cursor()

    cursor.execute("""
        UPDATE industries 
        SET secondary_category_id = 9
        WHERE name = 'Tech - Data Center'
    """)
    print("Updated Tech - Data Center Secondary ID to 9")

    conn.commit()
    conn.close()

if __name__ == "__main__":
    fix_tech_id()
