You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stackpress push does not create schemas when revision history is ahead of the database #12
After updating schema.idea through a plugin schema file, stackpress generate correctly generated the client models and revision snapshots for new schemas, including Company and Onboarding.
However, yarn push completed successfully without creating the corresponding database tables. The generated client contained the schemas, and .build/revisions/*.json contained the models, but the live database did not have the company or onboarding tables. Running yarn push again produced no SQL and exited successfully.
This happened because push appears to diff only the latest revision snapshots. If revision history already contains a model but the live database is missing the table, push does not reconcile the database against the current schema.
Expected Behavior
Stackpress push should either:
create missing tables that exist in the current generated schema, or
detect that the live database is out of sync with revision history and report a clear error or warning.
It should not silently succeed while required schema tables are missing from the database.
To Reproduce
Create or update a plugin schema, for example plugins/onboarding/schema.idea, with new models such as Company and Onboarding.
Include that schema from root schema.idea:
use "stackpress/stackpress.idea"
use "./plugins/onboarding/schema.idea"
Run:
yarn generate
Confirm generated client and revisions include the new models.
Ensure the live database does not yet have the corresponding tables.
Run:
yarn push
Observe that yarn push exits successfully but does not create the missing tables.
Run yarn push again and observe no SQL is emitted.
In our case, .build/migrations contained SQL for creating company and onboarding, but push did not apply those tables because the latest revision diff no longer considered them new.
Include git repo/fork so we can easily reproduce the issue
Activity
cblanquera commentedon Jul 9, 2026
This issue is for the stackpress project not inquire.
cblanquera commentedon Jul 14, 2026
fixed in 0.10.6