infoalloggi-monorepo/apps/db/migrations
Marco Pedone 1307f352a4 feat: enhance payment preparation logic and add rinnovo handling
- Refactor `preparePayment` function to handle multiple order types including Rinnovo.
- Introduce new `RinnovoSolver` function to calculate renewal packs based on duration.
- Add `createRinnovo` service to manage the creation of renewal orders.
- Update `whIntentSucceededHandler` to handle payment confirmations for Rinnovo and other order types.
- Introduce default conditions for packs in `prezziario.service.ts`.
- Add new utility functions for managing renewal durations and permanenza.
- Update database interactions to ensure proper handling of orders and renewals.
- Enhance error handling and logging throughout the payment and renewal processes.
2026-03-17 18:46:43 +01:00
..
1_init.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
2_users.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
3_usersanagrafica.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
4_usersstorage.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
5_email.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
6_annunci.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
7_imagesref.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
8_chats.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
9_etichette.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
10_chatsetichette.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
11_messages.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
12_servizio.up.sql feat: remove document references from servizio table and update deployment services 2025-11-14 18:03:55 +01:00
13_serviziointeressi.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
14_servizioannunci.up.sql refactor: clean up SQL migration for servizio_annunci table constraints and formatting 2025-11-14 18:23:38 +01:00
15_prezziario.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
16_ordini.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
17_payments.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
18_misc.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
19_data.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
20_seed_user.up.sql feat(migrations): Add multiple database migrations for new tables and data seeding 2025-10-30 19:14:31 +01:00
21_servizio_updates.up.sql feat: add columns scadenza_motivazione_transitoria, skipPayment, skipControlloDoc, and skipDocMotivazione to servizio table 2025-11-14 18:07:41 +01:00
22_updated_at_renamed.up.sql refactor: Rename 'updated_at' column to 'media_updated_at' and update references throughout the codebase 2025-11-06 13:17:20 +01:00
23_moving_docs.up.sql refactor: update SQL migration to use conditional blocks for dropping and adding columns in servizio and users_anagrafica tables 2025-11-14 18:09:11 +01:00
24_servizio_annunci_id.up.sql feat: enhance user management and document handling; refactor service and schema integrations 2025-11-10 16:27:15 +01:00
25_comuni_provincie_nazioni.up.sql feat: remove document references from servizio table and update deployment services 2025-11-14 18:03:55 +01:00
26_videos_refs.up.sql feat: Refactor video handling in announcements 2025-11-18 15:20:14 +01:00
27_flags_bool.up.sql Refactor API structure and update flag handling 2025-11-20 12:38:42 +01:00
28_potenziali.up.sql feat: implement Potenziali and PotenzialiGroups management with CRUD operations and UI enhancements 2025-12-03 13:56:53 +01:00
29_potenziali_groups.up.sql feat: implement Potenziali and PotenzialiGroups management with CRUD operations and UI enhancements 2025-12-03 13:56:53 +01:00
30_user_semplification.up.sql feat: implement user invitation system with email invites and password setup 2025-12-14 18:57:56 +01:00
31_magic_link.up.sql feat: implement user invitation system with email invites and password setup 2025-12-14 18:57:56 +01:00
32_no_aziende.up.sql refactor: remove company-related fields from user forms and schemas 2026-02-19 11:45:09 +01:00
33_cap.up.sql Refactor code structure for improved readability and maintainability 2026-03-06 12:35:41 +01:00
34_ordiniv2.up.sql feat: add drop table statement for payments in migration script 2026-03-08 01:05:50 +01:00
35_rinnovi.up.sql feat: update payment preparation logic to include 'Rinnovo' type and handle errors gracefully 2026-03-08 15:33:50 +01:00
36_user_etichette.up.sql fix: remove trailing comma in user_etichette table definition 2026-03-10 17:03:55 +01:00
37_rinnovi.up.sql feat: enhance payment preparation logic and add rinnovo handling 2026-03-17 18:46:43 +01:00