Repository navigation
Require the Aiven user and port and rewrite the mock data - #2
Merged
Merged
Conversation
- config/db.ts: AIVEN_DB_USER and AIVEN_DB_PORT have no fallback; the backend refuses to start without them, like AIVEN_DB_HOST - apply-migration.sh: same for the migration runner Why: the fallbacks published the database user and port of the production service. Render defines both variables in production and preview, so nothing changes there.
…hema - Clear and reload every module except users, catalogs and scheduling, inside one transaction - Use the existing users by role and stop before deleting anything if there is no active admin; no user rows or password hashes - Look up departments, payment methods and categories by name, since their ids differ between installations - Add F&B revenue, cashier vouchers, denominations and daily totals that match the app's cash formula, and the history rows of each module - Describe the file in the db-mysql AGENTS.md and INDEX.md trees Why: the old script created users with a published password hash, used fixed ids that broke after a delete, and predated several modules. The new one fills a public demo or a local database with fictitious data.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Dos cambios antes de hacer público el repositorio.
Cambios
0bb4c1f):config/db.tsyapply-migration.shya no publican el usuario y el puerto de producción; el backend no arranca sinAIVEN_DB_USERyAIVEN_DB_PORT, igual que con el host. Render los define en producción y en preview.a474007):mock-data.sqlvacía y recarga todos los módulos salvo usuarios, catálogos y horarios, en una transacción; usa los usuarios existentes por rol, sin crear cuentas ni hashes de contraseña; busca departamentos, métodos de pago y categorías por nombre.Comprobado
a474007.