feat(database): add unique constraint to preview_deployments table and update schema

- Introduced a new SQL file to add a unique constraint on the combination of applicationId and pullRequestId in the preview_deployments table.
- Updated the _journal.json to include the new migration entry for version 142.
- Created a new snapshot file for version 142 to reflect the current database schema.
- Modified the preview-deployments schema to include a unique index for applicationId and pullRequestId, enhancing data integrity.
This commit is contained in:
Mauricio Siu
2026-02-08 01:28:23 -06:00
parent a897fe6115
commit 51095e3ac5
5 changed files with 7301 additions and 28 deletions
@@ -0,0 +1 @@
ALTER TABLE "preview_deployments" ADD CONSTRAINT "preview_deployments_applicationId_pullRequestId_unique" UNIQUE("applicationId","pullRequestId");
File diff suppressed because it is too large Load Diff
+7
View File
@@ -995,6 +995,13 @@
"when": 1770490719123,
"tag": "0141_plain_earthquake",
"breakpoints": true
},
{
"idx": 142,
"version": "7",
"when": 1770535594423,
"tag": "0142_loose_warpath",
"breakpoints": true
}
]
}