@mastra/pg 0.14.4 → 0.14.6-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/operations/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/storage/domains/operations/index.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -2189,6 +2189,8 @@ var StoreOperationsPG = class extends StoreOperations {
|
|
|
2189
2189
|
DO $$ BEGIN
|
|
2190
2190
|
IF NOT EXISTS (
|
|
2191
2191
|
SELECT 1 FROM pg_constraint WHERE conname = '${constraintPrefix}mastra_workflow_snapshot_workflow_name_run_id_key'
|
|
2192
|
+
) AND NOT EXISTS (
|
|
2193
|
+
SELECT 1 FROM pg_indexes WHERE indexname = '${constraintPrefix}mastra_workflow_snapshot_workflow_name_run_id_key'
|
|
2192
2194
|
) THEN
|
|
2193
2195
|
ALTER TABLE ${getTableName({ indexName: tableName, schemaName: getSchemaName(this.schemaName) })}
|
|
2194
2196
|
ADD CONSTRAINT ${constraintPrefix}mastra_workflow_snapshot_workflow_name_run_id_key
|