@payloadcms/db-postgres 0.8.4 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/connect.js +1 -1
- package/dist/count.js +2 -2
- package/dist/create.js +2 -2
- package/dist/createGlobal.js +2 -2
- package/dist/createGlobalVersion.js +2 -2
- package/dist/createMigration.js +1 -1
- package/dist/createVersion.js +2 -2
- package/dist/deleteMany.js +2 -2
- package/dist/deleteOne.js +2 -2
- package/dist/deleteVersions.js +2 -2
- package/dist/destroy.js +1 -1
- package/dist/find/buildFindManyArgs.js +1 -1
- package/dist/find/chainMethods.js +1 -1
- package/dist/find/findMany.js +2 -2
- package/dist/find/traverseFields.js +1 -1
- package/dist/find.js +1 -1
- package/dist/findGlobal.js +1 -1
- package/dist/findGlobalVersions.js +1 -1
- package/dist/findOne.js +1 -1
- package/dist/findVersions.js +1 -1
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/migrate.js +2 -1
- package/dist/migrateDown.js +1 -1
- package/dist/migrateFresh.d.ts.map +1 -1
- package/dist/migrateFresh.js +2 -1
- package/dist/migrateRefresh.d.ts.map +1 -1
- package/dist/migrateRefresh.js +2 -1
- package/dist/migrateReset.js +1 -1
- package/dist/migrateStatus.js +1 -1
- package/dist/queries/buildAndOrConditions.js +1 -1
- package/dist/queries/buildQuery.js +1 -1
- package/dist/queries/createJSONQuery/convertPathToJSONTraversal.js +1 -1
- package/dist/queries/createJSONQuery/formatJSONPathSegment.js +1 -1
- package/dist/queries/createJSONQuery/index.js +1 -1
- package/dist/queries/getTableColumnFromPath.js +4 -4
- package/dist/queries/operatorMap.js +1 -1
- package/dist/queries/parseParams.js +1 -1
- package/dist/queries/sanitizeQueryValue.js +1 -1
- package/dist/queries/selectDistinct.js +1 -1
- package/dist/queryDrafts.js +1 -1
- package/dist/schema/build.js +1 -1
- package/dist/schema/createIndex.js +1 -1
- package/dist/schema/createTableName.js +1 -1
- package/dist/schema/idToUUID.js +1 -1
- package/dist/schema/parentIDColumnMap.js +1 -1
- package/dist/schema/setColumnID.js +1 -1
- package/dist/schema/traverseFields.js +2 -2
- package/dist/schema/validateExistingBlockIsIdentical.js +1 -1
- package/dist/transactions/beginTransaction.js +1 -1
- package/dist/transactions/commitTransaction.d.ts.map +1 -1
- package/dist/transactions/commitTransaction.js +2 -1
- package/dist/transactions/rollbackTransaction.d.ts.map +1 -1
- package/dist/transactions/rollbackTransaction.js +6 -5
- package/dist/transform/read/hasManyNumber.js +1 -1
- package/dist/transform/read/hasManyText.js +1 -1
- package/dist/transform/read/index.js +1 -1
- package/dist/transform/read/relationship.js +1 -1
- package/dist/transform/read/traverseFields.js +1 -1
- package/dist/transform/write/array.js +1 -1
- package/dist/transform/write/blocks.js +1 -1
- package/dist/transform/write/index.js +1 -1
- package/dist/transform/write/numbers.js +1 -1
- package/dist/transform/write/relationships.js +1 -1
- package/dist/transform/write/selects.js +1 -1
- package/dist/transform/write/texts.js +1 -1
- package/dist/transform/write/traverseFields.js +1 -1
- package/dist/transform/write/types.js +1 -1
- package/dist/types.js +1 -1
- package/dist/update.js +2 -2
- package/dist/updateGlobal.js +2 -2
- package/dist/updateGlobalVersion.js +2 -2
- package/dist/updateVersion.js +2 -2
- package/dist/upsertRow/deleteExistingArrayRows.js +1 -1
- package/dist/upsertRow/deleteExistingRowsByPath.js +1 -1
- package/dist/upsertRow/index.js +1 -1
- package/dist/upsertRow/insertArrays.js +1 -1
- package/dist/upsertRow/types.js +1 -1
- package/dist/utilities/appendPrefixToKeys.js +1 -1
- package/dist/utilities/createBlocksMap.js +1 -1
- package/dist/utilities/createMigrationTable.js +1 -1
- package/dist/utilities/createRelationshipMap.js +1 -1
- package/dist/utilities/hasLocalesTable.d.ts.map +1 -1
- package/dist/utilities/hasLocalesTable.js +4 -2
- package/dist/utilities/isArrayOfRows.js +1 -1
- package/dist/utilities/migrationTableExists.js +1 -1
- package/dist/utilities/parseError.js +1 -1
- package/package.json +3 -3
package/dist/updateVersion.js
CHANGED
@@ -18,7 +18,7 @@ function _interop_require_default(obj) {
|
|
18
18
|
};
|
19
19
|
}
|
20
20
|
async function updateVersion({ id, collection, locale, req = {}, versionData, where: whereArg }) {
|
21
|
-
const db = this.sessions[req.transactionID]?.db || this.drizzle;
|
21
|
+
const db = this.sessions[await req.transactionID]?.db || this.drizzle;
|
22
22
|
const collectionConfig = this.payload.collections[collection].config;
|
23
23
|
const whereToUse = whereArg || {
|
24
24
|
id: {
|
@@ -48,4 +48,4 @@ async function updateVersion({ id, collection, locale, req = {}, versionData, wh
|
|
48
48
|
return result;
|
49
49
|
}
|
50
50
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy91cGRhdGVWZXJzaW9uLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgVHlwZVdpdGhWZXJzaW9uLCBVcGRhdGVWZXJzaW9uQXJncyB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5pbXBvcnQgdHlwZSB7IFBheWxvYWRSZXF1ZXN0LCBTYW5pdGl6ZWRDb2xsZWN0aW9uQ29uZmlnLCBUeXBlV2l0aElEIH0gZnJvbSAncGF5bG9hZC90eXBlcydcblxuaW1wb3J0IHsgYnVpbGRWZXJzaW9uQ29sbGVjdGlvbkZpZWxkcyB9IGZyb20gJ3BheWxvYWQvdmVyc2lvbnMnXG5pbXBvcnQgdG9TbmFrZUNhc2UgZnJvbSAndG8tc25ha2UtY2FzZSdcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuL3R5cGVzJ1xuXG5pbXBvcnQgYnVpbGRRdWVyeSBmcm9tICcuL3F1ZXJpZXMvYnVpbGRRdWVyeSdcbmltcG9ydCB7IHVwc2VydFJvdyB9IGZyb20gJy4vdXBzZXJ0Um93J1xuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gdXBkYXRlVmVyc2lvbjxU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RLEVBQ007SUFFdkIsTUFBTUMsS0FBSyxJQUFJLENBQUNDLFFBQVEsQ0FBQyxNQUFNTCxJQUFJTSxhQUFhLENBQUMsRUFBRUYsTUFBTSxJQUFJLENBQUNHLE9BQU87SUFDckUsTUFBTUMsbUJBQThDLElBQUksQ0FBQ0MsT0FBTyxDQUFDQyxXQUFXLENBQUNaLFdBQVcsQ0FBQ2EsTUFBTTtJQUMvRixNQUFNQyxhQUFhVCxZQUFZO1FBQUVOLElBQUk7WUFBRWdCLFFBQVFoQjtRQUFHO0lBQUU7SUFDcEQsTUFBTWlCLFlBQVksSUFBSSxDQUFDQyxZQUFZLENBQUNDLEdBQUcsQ0FDckMsQ0FBQyxDQUFDLEVBQUVDLElBQUFBLG9CQUFXLEVBQUNULGlCQUFpQlUsSUFBSSxFQUFFLEVBQUUsSUFBSSxDQUFDQyxjQUFjLENBQUMsQ0FBQztJQUdoRSxNQUFNQyxTQUFTQyxJQUFBQSxzQ0FBNEIsRUFBQ2I7SUFFNUMsTUFBTSxFQUFFTixLQUFLLEVBQUUsR0FBRyxNQUFNb0IsSUFBQUEsbUJBQVUsRUFBQztRQUNqQ0MsU0FBUyxJQUFJO1FBQ2JIO1FBQ0FyQjtRQUNBZTtRQUNBWixPQUFPVTtJQUNUO0lBRUEsTUFBTVksU0FBUyxNQUFNQyxJQUFBQSxvQkFBUyxFQUFxQjtRQUNqRDVCO1FBQ0EwQixTQUFTLElBQUk7UUFDYkcsTUFBTXpCO1FBQ05HO1FBQ0FnQjtRQUNBTyxXQUFXO1FBQ1gzQjtRQUNBYztRQUNBWjtJQUNGO0lBRUEsT0FBT3NCO0FBQ1QifQ==
|
@@ -17,4 +17,4 @@ const deleteExistingArrayRows = async ({ adapter, db, parentID, tableName })=>{
|
|
17
17
|
await db.delete(table).where((0, _drizzleorm.and)(...whereConstraints));
|
18
18
|
};
|
19
19
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
20
|
+
//# sourceMappingURL=data:application/json;base64,ey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2FBOzs7ZUFBQUE7Ozs0QkFYVztBQVdqQixNQUFNQSwwQkFBMEIsT0FBTyxFQUM1Q0MsT0FBTyxFQUNQQyxFQUFFLEVBQ0ZDLFFBQVEsRUFDUkMsU0FBUyxFQUNKO0lBQ0wsTUFBTUMsUUFBUUosUUFBUUssTUFBTSxDQUFDRixVQUFVO0lBRXZDLE1BQU1HLG1CQUFtQjtRQUFDQyxJQUFBQSxjQUFFLEVBQUNILE1BQU1JLFNBQVMsRUFBRU47S0FBVTtJQUV4RCxNQUFNRCxHQUFHUSxNQUFNLENBQUNMLE9BQU9NLEtBQUssQ0FBQ0MsSUFBQUEsZUFBRyxLQUFJTDtBQUN0QyJ9
|
@@ -40,4 +40,4 @@ const deleteExistingRowsByPath = async ({ adapter, db, localeColumnName = '_loca
|
|
40
40
|
}
|
41
41
|
};
|
42
42
|
|
43
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91cHNlcnRSb3cvZGVsZXRlRXhpc3RpbmdSb3dzQnlQYXRoLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGFuZCwgZXEsIGluQXJyYXkgfSBmcm9tICdkcml6emxlLW9ybSdcblxuaW1wb3J0IHR5cGUgeyBEcml6emxlREIsIFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4uL3R5cGVzJ1xuXG50eXBlIEFyZ3MgPSB7XG4gIGFkYXB0ZXI6IFBvc3RncmVzQWRhcHRlclxuICBkYjogRHJpenpsZURCXG4gIGxvY2FsZUNvbHVtbk5hbWU/OiBzdHJpbmdcbiAgcGFyZW50Q29sdW1uTmFtZT86IHN0cmluZ1xuICBwYXJlbnRJRDogdW5rbm93blxuICBwYXRoQ29sdW1uTmFtZT86IHN0cmluZ1xuICByb3dzOiBSZWNvcmQ8c3RyaW5nLCB1bmtub3duPltdXG4gIHRhYmxlTmFtZTogc3RyaW5nXG59XG5cbmV4cG9ydCBjb25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1QLEdBQUd3QixNQUFNLENBQUNkLE9BQU9lLEtBQUssQ0FBQ0MsSUFBQUEsZUFBRyxLQUFJUjtJQUN0QztJQUVBLElBQUlULGNBQWNRLElBQUksR0FBRyxHQUFHO1FBQzFCLE1BQU1DLG1CQUFtQjtZQUFDQyxJQUFBQSxjQUFFLEVBQUNULEtBQUssQ0FBQ1IsaUJBQWlCLEVBQUVDO1NBQVU7UUFFaEUsSUFBSUMsZ0JBQ0ZjLGlCQUFpQkUsSUFBSSxDQUFDQyxJQUFBQSxtQkFBTyxFQUFDWCxLQUFLLENBQUNOLGVBQWUsRUFBRWtCLE1BQU1DLElBQUksQ0FBQ2Q7UUFFbEUsTUFBTVQsR0FBR3dCLE1BQU0sQ0FBQ2QsT0FBT2UsS0FBSyxDQUFDQyxJQUFBQSxlQUFHLEtBQUlSO0lBQ3RDO0FBQ0YifQ==
|
package/dist/upsertRow/index.js
CHANGED
@@ -285,4 +285,4 @@ const upsertRow = async ({ id, adapter, data, db, fields, operation, path = '',
|
|
285
285
|
return result;
|
286
286
|
};
|
287
287
|
|
288
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91cHNlcnRSb3cvaW5kZXgudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbm8tcGFyYW0tcmVhc3NpZ24gKi9cbmltcG9ydCB0eXBlIHsgVHlwZVdpdGhJRCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IGVxIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5pbXBvcnQgeyBWYWxpZGF0aW9uRXJyb3IgfSBmcm9tICdwYXlsb2FkL2Vycm9ycydcbmltcG9ydCB7IGkxOG5Jbml0IH0gZnJvbSAncGF5bG9hZC91dGlsaXRpZXMnXG5cbmltcG9ydCB0eXBlIHsgQmxvY2tSb3dUb0luc2VydCB9IGZyb20gJy4uL3RyYW5zZm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7UUFDckN0RztRQUNBdUcsT0FBTztRQUNQcEc7UUFDQUk7SUFDRjtJQUVBOEYsYUFBYTVGLEtBQUssR0FBRzhDLElBQUFBLGNBQUUsRUFBQ3ZELFFBQVFjLE1BQU0sQ0FBQ1AsVUFBVSxDQUFDUixFQUFFLEVBQUVhLFlBQVliLEVBQUU7SUFFcEUsTUFBTXlHLE1BQU0sTUFBTXRHLEdBQUd1RyxLQUFLLENBQUNsRyxVQUFVLENBQUNtRyxTQUFTLENBQUNMO0lBRWhELHFDQUFxQztJQUNyQyxpQkFBaUI7SUFDakIscUNBQXFDO0lBRXJDLE1BQU1NLFNBQVNDLElBQUFBLGVBQVMsRUFBSTtRQUMxQlQsUUFBUW5HLFFBQVFrRyxPQUFPLENBQUNDLE1BQU07UUFDOUJsRyxNQUFNdUc7UUFDTnJHO0lBQ0Y7SUFFQSxPQUFPd0c7QUFDVCJ9
|
@@ -75,4 +75,4 @@ const insertArrays = async ({ adapter, arrays, db, parentRows })=>{
|
|
75
75
|
}
|
76
76
|
};
|
77
77
|
|
78
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91cHNlcnRSb3cvaW5zZXJ0QXJyYXlzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXBhcmFtLXJlYXNzaWduICovXG5pbXBvcnQgdHlwZSB7IEFycmF5Um93VG9JbnNlcnQgfSBmcm9tICcuLi90cmFuc2Zvcm0vd3JpdGUvdHlwZXMnXG5pbXBvcnQgdHlwZSB7IERyaXp6bGVEQiwgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi4vdHlwZXMnXG5cbnR5cGUgQXJncyA9IHtcbiAgYWRhcHRlcjogUG9zdGdyZXNBZGFwdGVyXG4gIGFycmF5czoge1xuICAgIFt0YWJsZU5hbWU6IHN0cmluZ106IEFycmF5Um93VG9JbnNlcnRbXVxuICB9W11cbi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cmVudFJvd3NbcGFyZW50Um93SW5kZXhdLmlkXG5cbiAgICAgIC8vIEFkZCBhbnkgc3ViIGFycmF5cyB0aGF0IG5lZWQgdG8gYmUgY3JlYXRlZFxuICAgICAgLy8gV2Ugd2lsbCBjYWxsIHRoaXMgcmVjdXJzaXZlbHkgYmVsb3dcbiAgICAgIGFycmF5Um93cy5mb3JFYWNoKChhcnJheVJvdywgaSkgPT4ge1xuICAgICAgICBpZiAoT2JqZWN0LmtleXMoYXJyYXlSb3cuYXJyYXlzKS5sZW5ndGggPiAwKSB7XG4gICAgICAgICAgcm93c0J5VGFibGVbdGFibGVOYW1lXS5hcnJheXMucHVzaChhcnJheVJvdy5hcnJheXMpXG4gICAgICAgIH1cblxuICAgICAgICAvLyBTZXQgdXAgcGFyZW50IElEcyBmb3IgYm90aCByb3cgYW5kIGxvY2FsZSByb3dcbiAgICAgICAgYXJyYXlSb3cucm93Ll9wYXJlbnRJRCA9IHBhcmVudElEXG4gICAgICAgIHJvd3NCeVRhYmxlW3RhYmxlTmFtZV0ucm93cy5wdXNoKGFycmF5Um93LnJvdylcblxuICAgICAgICBPYmplY3QuZW50cmllcyhhcnJheVJvdy5sb2NhbGVzKS5mb3JFYWNoKChbYXJyYXlSb3dMb2NhbGUsIGFycmF5Um93TG9jYWxlRGF0YV0pID0+
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91cHNlcnRSb3cvaW5zZXJ0QXJyYXlzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXBhcmFtLXJlYXNzaWduICovXG5pbXBvcnQgdHlwZSB7IEFycmF5Um93VG9JbnNlcnQgfSBmcm9tICcuLi90cmFuc2Zvcm0vd3JpdGUvdHlwZXMnXG5pbXBvcnQgdHlwZSB7IERyaXp6bGVEQiwgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi4vdHlwZXMn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__esModule", {
|
|
3
3
|
value: true
|
4
4
|
});
|
5
5
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJyYW5nZU1hcHBpbmdzIjoiIiwibWFwcGluZ3MiOiIifQ==
|
@@ -13,4 +13,4 @@ const appendPrefixToObjectKeys = (obj, prefix)=>Object.entries(obj).reduce((res,
|
|
13
13
|
return res;
|
14
14
|
}, {});
|
15
15
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvYXBwZW5kUHJlZml4VG9LZXlzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBhcHBlbmRQcmVmaXhUb09iamVjdEtleXMgPSA8VD4ob2JqOiBSZWNvcmQ8c3RyaW5nLCB1bmtub3duPiwgcHJlZml4OiBzdHJpbmcpOiBUID0+XG4gIE9iamVjdC5lbnRyaWVzKG9iaikucmVkdWNlKChyZXMsIFtrZXksIHZhbF0pID0+
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvYXBwZW5kUHJlZml4VG9LZXlzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBhcHBlbmRQcmVmaXhUb09iamVjdEtleXMgPSA8VD4ob2JqOiBSZWNvcmQ8c3RyaW5nLCB1bmtub3duPiwgcHJlZml4OiBzdHJpbmcpOiBUID0+XG4gIE9iamVjdC5lbnRyaWVzKG9iaikucmVkdWNlKChyZXMsIFtrZXksIHZhbF0pID0+IHtcbiAgICByZXNbYCR7cHJlZml4fV8ke2tleX1gXSA9IHZhbFxuICAgIHJldHVybiByZXNcbiAgfSwge30gYXMgVClcbiJdLCJuYW1lcy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I7WUFDRjtZQUVBLE9BQU9iLElBQUksQ0FBQ0ssSUFBSTtRQUNsQjtJQUNGO0lBRUFILE9BQU9DLE9BQU8sQ0FBQ0YsV0FBV2MsTUFBTSxDQUFDLENBQUNDLGlCQUFpQixDQUFDQyxNQUFNQyxPQUFPO1FBQy9ERixlQUFlLENBQUNDLEtBQUssR0FBR0MsT0FBT0MsSUFBSSxDQUFDLENBQUNDLEdBQUdDO1lBQ3RDLElBQUksT0FBT0QsRUFBRUUsTUFBTSxLQUFLLFlBQVksT0FBT0QsRUFBRUMsTUFBTSxLQUFLLFVBQVU7Z0JBQ2hFLE9BQU9GLEVBQUVFLE1BQU0sR0FBR0QsRUFBRUMsTUFBTTtZQUM1QjtZQUVBLE9BQU87UUFDVDtRQUVBLE9BQU9OO0lBQ1QsR0FBRyxDQUFDO0lBRUosT0FBT2Y7QUFDVCJ9
|
@@ -20,4 +20,4 @@ const createMigrationTable = async (adapter)=>{
|
|
20
20
|
);`));
|
21
21
|
};
|
22
22
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvY3JlYXRlTWlncmF0aW9uVGFibGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgc3FsIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi4vdHlwZXMnXG5cbmV4cG9ydCBjb25zdCBjcmVhdGVNaWdyYXRpb25UYWJsZSA9IGFzeW5jIChhZGFwdGVyOiBQb3N0Z3Jlc0FkYXB0ZXIpOiBQcm9taXNlPHZvaWQ+ID0+IHtcbiAgY29uc3QgcHJlcGVuZFNjaGVtYSA9IGFkYXB0ZXIuc2NoZW1hTmFtZSA/
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy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I6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7IiwibWFwcGluZ3MiOiI7Ozs7K0JBSWFBOzs7ZUFBQUE7Ozs0QkFKTztBQUliLE1BQU1BLHVCQUF1QixPQUFPQztJQUN6QyxNQUFNQyxnQkFBZ0JELFFBQVFFLFVBQVUsR0FBRyxDQUFDLENBQUMsRUFBRUYsUUFBUUUsVUFBVSxDQUFDLEVBQUUsQ0FBQyxHQUFHO0lBRXhFLE1BQU1GLFFBQVFHLE9BQU8sQ0FBQ0MsT0FBTyxDQUMzQkMsZUFBRyxDQUFDQyxHQUFHLENBQUMsQ0FBQywyQkFBMkIsRUFBRUwsY0FBYzs7Ozs7O0VBTXRELENBQUM7QUFFSCJ9
|
@@ -26,4 +26,4 @@ const createPathMap = (rows)=>{
|
|
26
26
|
return rowsByPath;
|
27
27
|
};
|
28
28
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvY3JlYXRlUmVsYXRpb25zaGlwTWFwLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIEZsYXR0ZW4gcm93cyB0byBvYmplY3Qgd2l0aCBwYXRoIGtleXNcbi8vIGZvciBlYXNpZXIgcmV0cmlldmFsXG5leHBvcnQgY29uc3QgY3JlYXRlUGF0aE1hcCA9IChyb3dzOiB1bmtub3duKTogUmVjb3JkPHN0cmluZywgUmVjb3JkPHN0cmluZywgdW5rbm93bj5bXT4gPT4ge1xuICBsZXQgcm93c0J5UGF0aCA9IHt9XG5cbiAgaWYgKEFycmF5LmlzQXJyYXkocm93cykpIHtcbiAgICByb3dzQnlQYXRoID0gcm93cy5yZWR1Y2UoKHJlcywgcm93KSA9PiB7XG4gICAgICBjb25zdCBmb3JtYXR0ZWRSb3cgPSB7XG4gICAgICAgIC4uLnJvdyxcbiAgICAgIH1cblxuICAgICAgZG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ts","sourceRoot":"","sources":["../../src/utilities/hasLocalesTable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAI1C,eAAO,MAAM,eAAe,WAAY,KAAK,EAAE,KAAG,
|
1
|
+
{"version":3,"file":"hasLocalesTable.d.ts","sourceRoot":"","sources":["../../src/utilities/hasLocalesTable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAI1C,eAAO,MAAM,eAAe,WAAY,KAAK,EAAE,KAAG,OASjD,CAAA"}
|
@@ -11,11 +11,13 @@ Object.defineProperty(exports, "hasLocalesTable", {
|
|
11
11
|
const _types = require("payload/types");
|
12
12
|
const hasLocalesTable = (fields)=>{
|
13
13
|
return fields.some((field)=>{
|
14
|
+
// arrays always get a separate table
|
15
|
+
if (field.type === 'array') return false;
|
14
16
|
if ((0, _types.fieldAffectsData)(field) && field.localized) return true;
|
15
|
-
if ((0, _types.fieldHasSubFields)(field)
|
17
|
+
if ((0, _types.fieldHasSubFields)(field)) return hasLocalesTable(field.fields);
|
16
18
|
if (field.type === 'tabs') return field.tabs.some((tab)=>hasLocalesTable(tab.fields));
|
17
19
|
return false;
|
18
20
|
});
|
19
21
|
};
|
20
22
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvaGFzTG9jYWxlc1RhYmxlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmllbGQgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBmaWVsZEFmZmVjdHNEYXRhLCBmaWVsZEhhc1N1YkZpZWxkcyB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmV4cG9ydCBjb25zdCBoYXNMb2NhbGVzVGFibGUgPSAoZmllbGRzOiBGaWVsZFtdKTogYm9vbG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hhc1N1YkZpZWxkcyIsInRhYnMiLCJ0YWIiXSwicmFuZ2VNYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7IiwibWFwcGluZ3MiOiI7Ozs7K0JBSWFBOzs7ZUFBQUE7Ozt1QkFGdUM7QUFFN0MsTUFBTUEsa0JBQWtCLENBQUNDO0lBQzlCLE9BQU9BLE9BQU9DLElBQUksQ0FBQyxDQUFDQztRQUNsQixxQ0FBcUM7UUFDckMsSUFBSUEsTUFBTUMsSUFBSSxLQUFLLFNBQVMsT0FBTztRQUNuQyxJQUFJQyxJQUFBQSx1QkFBZ0IsRUFBQ0YsVUFBVUEsTUFBTUcsU0FBUyxFQUFFLE9BQU87UUFDdkQsSUFBSUMsSUFBQUEsd0JBQWlCLEVBQUNKLFFBQVEsT0FBT0gsZ0JBQWdCRyxNQUFNRixNQUFNO1FBQ2pFLElBQUlFLE1BQU1DLElBQUksS0FBSyxRQUFRLE9BQU9ELE1BQU1LLElBQUksQ0FBQ04sSUFBSSxDQUFDLENBQUNPLE1BQVFULGdCQUFnQlMsSUFBSVIsTUFBTTtRQUNyRixPQUFPO0lBQ1Q7QUFDRiJ9
|
@@ -12,4 +12,4 @@ function isArrayOfRows(data) {
|
|
12
12
|
return Array.isArray(data);
|
13
13
|
}
|
14
14
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvaXNBcnJheU9mUm93cy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gaXNBcnJheU9mUm93cyhkYXRhOiB1bmtub3duKTogZGF0YSBpcyBSZWNvcmQ8c3RyaW5nLCB1bmtub3duPltdIHtcbiAgcmV0dXJuIEFycmF5LmlzQXJyYXkoZGF0YSlcbn1cbiJdLCJuYW1lcyI6WyJpc0FycmF5T2ZSb3dzIiwiZGF0YSIsIkFycmF5IiwiaXNBcnJheSJdLCJyYW5nZU1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7IiwibWFwcGluZ3MiOiI7Ozs7K0JBQWdCQTs7O2VBQUFBOzs7QUFBVCxTQUFTQSxjQUFjQyxJQUFhO0lBQ3pDLE9BQU9DLE1BQU1DLE9BQU8sQ0FBQ0Y7QUFDdkIifQ==
|
@@ -16,4 +16,4 @@ const migrationTableExists = async (db)=>{
|
|
16
16
|
return exists;
|
17
17
|
};
|
18
18
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvbWlncmF0aW9uVGFibGVFeGlzdHMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgc3FsIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5cbmltcG9ydCB0eXBlIHsgRHJpenpsZURCIH0gZnJvbSAnLi4vdHlwZXMnXG5cbmV4cG9ydCBjb25zdCBtaWdyYXRpb25UYWJsZUV4aXN0cyA9IGFzeW5jIChkYjogRHJpenpsZURCKTogUHJvbWlzZTxib29sZWFuPiA9PiB7XG4gIGNvbnN0IHF1ZXJ5UmVzID0gYXdhaXQgZGIuZXhlY3V0ZShzcWxgU0VMRUNUIHRvX3JlZ2NsYXNzKCdwdWJsaWMucGF5bG9hZF9taWdyYXRpb25zJyk7YClcblxuICAvLyBSZXR1cm5zIHRhYmxlIG5hbWUgJ3BheWxvYWRfbWlncmF0aW9ucycgb3IgbnVsbFxuICBjb25zdCBleGlzdHMgPSBxdWVyeVJlcy5yb3dzPy5bMF0/
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvbWlncmF0aW9uVGFibGVFeGlzdHMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgc3FsIH0gZ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
|
};
|
23
23
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvcGFyc2VFcnJvci50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEYXRhYmFzZUVycm9yIH0gZnJvbSAncGcnXG5cbi8qKlxuICogRm9ybWF0IGVycm9yIG1lc3NhZ2Ugd2l0aCBoaW50IGlmIGF2YWlsYWJsZVxuICovXG5leHBvcnQgY29uc3QgcGFyc2VFcnJvciA9IChlcnI6IHVua25vd24sIG1zZzogc3RyaW5nKTogc3RyaW5nID0+
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvcGFyc2VFcnJvci50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEYXRhYmFzZUVycm9yIH0gZnJvbSAncGcnXG5cbi8qKlxuICogRm9ybWF0IGVycm9yIG1lc3NhZ2Ugd2l0aCBoaW50IGlmIGF2YWlsYWJsZVxuICovXG5leHBvcnQgY29uc3QgcGFyc2VFcnJvciA9IChlcnI6IHVua25vd24sIG1zZzogc3RyaW5nKTogc3RyaW5nID0+IHtcbiAgbGV0IGZvcm1hdHRlZE1zZyA9IGAke21zZ31gXG4gIGlmIChlcnIgaW5zdGFuY2VvZiBFcnJvcikge1xuICAgIGZvcm1hdHRlZE1zZyArPSBgICR7ZXJyLm1lc3NhZ2V9LmBcbiAgICBpZiAoZXJyIGluc3RhbmNlb2YgRGF0YWJhc2VFcnJvcikge1xuICAgICAgbXNnICs9IGA6ICR7ZXJyLm1lc3NhZ2V9YFxuICAgICAgaWYgKGVyci5oaW50KSBtc2cgKz0gYCAke2Vyci5oaW50fS5gXG4gICAgfVxuICB9XG4gIHJldHVybiBmb3JtYXR0ZWRNc2dcbn1cbiJdLCJuYW1lcyI6WyJwYXJzZUVycm9yIiwiZXJyIiwibXNnIiwiZm9ybWF0dGVkTXNnIiwiRXJyb3IiLCJtZXNzYWdlIiwiRGF0YWJhc2VFcnJvciIsImhpbnQiXSwicmFuZ2VNYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OyIsIm1hcHBpbmdzIjoiOzs7OytCQUthQTs7O2VBQUFBOzs7b0JBTGlCO0FBS3ZCLE1BQU1BLGFBQWEsQ0FBQ0MsS0FBY0M7SUFDdkMsSUFBSUMsZUFBZSxDQUFDLEVBQUVELElBQUksQ0FBQztJQUMzQixJQUFJRCxlQUFlRyxPQUFPO1FBQ3hCRCxnQkFBZ0IsQ0FBQyxDQUFDLEVBQUVGLElBQUlJLE9BQU8sQ0FBQyxDQUFDLENBQUM7UUFDbEMsSUFBSUosZUFBZUssaUJBQWEsRUFBRTtZQUNoQ0osT0FBTyxDQUFDLEVBQUUsRUFBRUQsSUFBSUksT0FBTyxDQUFDLENBQUM7WUFDekIsSUFBSUosSUFBSU0sSUFBSSxFQUFFTCxPQUFPLENBQUMsQ0FBQyxFQUFFRCxJQUFJTSxJQUFJLENBQUMsQ0FBQyxDQUFDO1FBQ3RDO0lBQ0Y7SUFDQSxPQUFPSjtBQUNUIn0=
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@payloadcms/db-postgres",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.6",
|
4
4
|
"description": "The officially supported Postgres database adapter for Payload",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -29,8 +29,8 @@
|
|
29
29
|
"devDependencies": {
|
30
30
|
"@types/pg": "8.10.2",
|
31
31
|
"@types/to-snake-case": "1.0.0",
|
32
|
-
"
|
33
|
-
"
|
32
|
+
"payload": "2.28.0",
|
33
|
+
"@payloadcms/eslint-config": "1.1.1"
|
34
34
|
},
|
35
35
|
"peerDependencies": {
|
36
36
|
"payload": "^2.0.0"
|