mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 19:32:21 -06:00
Refactor database migrations and schema for Chat and Setting tables
- Removed the unique constraint on `remoteJid` and `instanceId` in the `Chat` model to prevent potential migration failures due to existing duplicates. - Deleted the old migration file for adding `wavoipToken` to the `Setting` table and created a new migration that includes a check for the column's existence before adding it, ensuring smoother migration processes. - Updated migration logic to clear previous migrations related to `wavoip_token` to maintain a clean migration history.
This commit is contained in:
@@ -127,7 +127,6 @@ model Chat {
|
||||
unreadMessages Int @default(0)
|
||||
@@index([instanceId])
|
||||
@@index([remoteJid])
|
||||
@@unique([remoteJid, instanceId])
|
||||
}
|
||||
|
||||
model Contact {
|
||||
|
||||
Reference in New Issue
Block a user