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 Apr 10, 2026
Merged
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.#80goldlabelapps merged 2 commits intomasterfrom
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.#80goldlabelapps merged 2 commits intomasterfrom
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API Enhancements:
/prospects/factoryresetinapp/api/prospects/prospects.pyto reset all prospects'flagandhidefields toFalse. This endpoint provides a way to bulk reset these fields for all records. [1] [2]Database and Utilities:
print_create_prospects_table.pyinapp/api/prospects/sql/that connects to the database and prints the current SQLCREATE TABLEstatement for theprospectstable, reflecting its live schema.create_table.sqlthat previously defined theprospectstable schema, possibly to avoid schema drift and encourage use of the new dynamic script.Versioning:
2.1.9to2.2.0inapp/__init__.pyto reflect the new features and changes.