evolution-api/prisma/migrations
Davidson Gomes ca3dadfb35 Fix: Resolve issue with template association in Instance model
The Issue:
The Instance model in the postgresql-schema.prisma file previously had a Template field that was a single Template object, but this caused issues with the association of multiple templates to a single instance.

The Change:
This commit resolves the issue by changing the Template field to an array of Template objects. This allows for multiple templates to be associated with a single instance.

The Impact:
This change allows for more flexible use of templates in the system and resolves a previous limitation in the association of templates to instances.

Affected Files:
- prisma/postgresql-schema.prisma
- src/api/services/template.service.ts

Note: The migration folder added in the untracked files section is a result of the Prisma schema change and can be safely ignored in this commit message.
2024-07-12 13:01:17 -03:00
..
20240609181238_init docker 2024-06-09 21:54:10 -03:00
20240610144159_create_column_profile_name_instance fix: instances 2024-06-10 11:52:19 -03:00
20240611125754_create_columns_whitelabel_chatwoot feat: Organization configuration and logo in chatwoot bot contact 2024-06-11 10:09:04 -03:00
20240611202817_create_columns_debounce_time_typebot feat: Added debounce time for typebot messages 2024-06-11 17:56:20 -03:00
20240712144948_add_business_id_column_to_instances chore: Add businessId to Instance model 2024-07-12 11:52:29 -03:00
20240712150256_create_templates_table Add support for managing WhatsApp templates via official API 2024-07-12 12:32:44 -03:00
20240712155950_adjusts_in_templates_table Fix: Resolve issue with template association in Instance model 2024-07-12 13:01:17 -03:00
migration_lock.toml docker 2024-06-09 21:54:10 -03:00