Skip to content

This pull request introduces a new PATCH endpoint to factory reset all prospects' flag and hide fields, updates the project version, and adds a utility script for printing the current SQL schema for the prospects table. Additionally, the SQL file for creating the prospects table has been removed, possibly in favor of the new dynamic schema printer.#80

Merged
goldlabelapps merged 2 commits intomasterfrom
staging
Apr 10, 2026

Conversation

@goldlabelapps
Copy link
Copy Markdown
Owner

API Enhancements:

  • Added a new PATCH endpoint /prospects/factoryreset in app/api/prospects/prospects.py to reset all prospects' flag and hide fields to False. This endpoint provides a way to bulk reset these fields for all records. [1] [2]

Database and Utilities:

  • Added a new utility script print_create_prospects_table.py in app/api/prospects/sql/ that connects to the database and prints the current SQL CREATE TABLE statement for the prospects table, reflecting its live schema.
  • Removed the static SQL file create_table.sql that previously defined the prospects table schema, possibly to avoid schema drift and encourage use of the new dynamic script.

Versioning:

  • Updated the project version from 2.1.9 to 2.2.0 in app/__init__.py to reflect the new features and changes.

Update package version to 2.2.0. Remove the static create_table.sql for prospects and add a Python utility (print_create_prospects_table.py) that introspects information_schema to generate a CREATE TABLE statement dynamically. Also add a static image (app/static/python copy.png). This replaces the hardcoded SQL with a script-driven approach for keeping table DDL in sync with the database.
@goldlabelapps goldlabelapps merged commit a9e2946 into master Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant