@payloadcms/db-postgres 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. package/dist/connect.js +1 -1
  2. package/dist/count.d.ts +3 -0
  3. package/dist/count.d.ts.map +1 -0
  4. package/dist/count.js +68 -0
  5. package/dist/create.js +1 -1
  6. package/dist/createGlobal.js +1 -1
  7. package/dist/createGlobalVersion.js +1 -1
  8. package/dist/createMigration.js +1 -1
  9. package/dist/createVersion.js +1 -1
  10. package/dist/deleteMany.js +1 -1
  11. package/dist/deleteOne.js +1 -1
  12. package/dist/deleteVersions.js +1 -1
  13. package/dist/destroy.js +1 -1
  14. package/dist/find/buildFindManyArgs.js +1 -1
  15. package/dist/find/chainMethods.js +1 -1
  16. package/dist/find/findMany.js +1 -1
  17. package/dist/find/traverseFields.js +1 -1
  18. package/dist/find.js +1 -1
  19. package/dist/findGlobal.js +1 -1
  20. package/dist/findGlobalVersions.js +1 -1
  21. package/dist/findOne.js +1 -1
  22. package/dist/findVersions.js +1 -1
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +3 -1
  25. package/dist/init.js +1 -1
  26. package/dist/migrate.js +1 -1
  27. package/dist/migrateDown.js +1 -1
  28. package/dist/migrateFresh.js +1 -1
  29. package/dist/migrateRefresh.js +1 -1
  30. package/dist/migrateReset.js +1 -1
  31. package/dist/migrateStatus.js +1 -1
  32. package/dist/queries/buildAndOrConditions.js +1 -1
  33. package/dist/queries/buildQuery.js +1 -1
  34. package/dist/queries/createJSONQuery/convertPathToJSONTraversal.js +1 -1
  35. package/dist/queries/createJSONQuery/formatJSONPathSegment.js +1 -1
  36. package/dist/queries/createJSONQuery/index.js +1 -1
  37. package/dist/queries/getTableColumnFromPath.js +1 -1
  38. package/dist/queries/operatorMap.js +1 -1
  39. package/dist/queries/parseParams.js +1 -1
  40. package/dist/queries/sanitizeQueryValue.js +1 -1
  41. package/dist/queries/selectDistinct.js +1 -1
  42. package/dist/queryDrafts.js +1 -1
  43. package/dist/schema/build.js +1 -1
  44. package/dist/schema/createIndex.js +1 -1
  45. package/dist/schema/getTableName.js +1 -1
  46. package/dist/schema/idToUUID.js +1 -1
  47. package/dist/schema/parentIDColumnMap.js +1 -1
  48. package/dist/schema/setColumnID.js +1 -1
  49. package/dist/schema/traverseFields.d.ts.map +1 -1
  50. package/dist/schema/traverseFields.js +4 -6
  51. package/dist/schema/validateExistingBlockIsIdentical.d.ts.map +1 -1
  52. package/dist/schema/validateExistingBlockIsIdentical.js +4 -4
  53. package/dist/transactions/beginTransaction.js +1 -1
  54. package/dist/transactions/commitTransaction.js +1 -1
  55. package/dist/transactions/rollbackTransaction.js +1 -1
  56. package/dist/transform/read/hasManyNumber.js +1 -1
  57. package/dist/transform/read/hasManyText.js +1 -1
  58. package/dist/transform/read/index.js +1 -1
  59. package/dist/transform/read/relationship.js +1 -1
  60. package/dist/transform/read/traverseFields.js +1 -1
  61. package/dist/transform/write/array.js +1 -1
  62. package/dist/transform/write/blocks.js +1 -1
  63. package/dist/transform/write/index.js +1 -1
  64. package/dist/transform/write/numbers.js +1 -1
  65. package/dist/transform/write/relationships.js +1 -1
  66. package/dist/transform/write/selects.js +1 -1
  67. package/dist/transform/write/texts.js +1 -1
  68. package/dist/transform/write/traverseFields.js +1 -1
  69. package/dist/transform/write/types.js +1 -1
  70. package/dist/types.js +1 -1
  71. package/dist/update.js +1 -1
  72. package/dist/updateGlobal.js +1 -1
  73. package/dist/updateGlobalVersion.js +1 -1
  74. package/dist/updateVersion.js +1 -1
  75. package/dist/upsertRow/deleteExistingArrayRows.js +1 -1
  76. package/dist/upsertRow/deleteExistingRowsByPath.js +1 -1
  77. package/dist/upsertRow/index.js +1 -1
  78. package/dist/upsertRow/insertArrays.js +1 -1
  79. package/dist/upsertRow/types.js +1 -1
  80. package/dist/utilities/appendPrefixToKeys.js +1 -1
  81. package/dist/utilities/createBlocksMap.js +1 -1
  82. package/dist/utilities/createMigrationTable.js +1 -1
  83. package/dist/utilities/createRelationshipMap.js +1 -1
  84. package/dist/utilities/hasLocalesTable.js +1 -1
  85. package/dist/utilities/isArrayOfRows.js +1 -1
  86. package/dist/utilities/migrationTableExists.js +1 -1
  87. package/dist/utilities/parseError.js +1 -1
  88. package/package.json +3 -3
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91cHNlcnRSb3cvZGVsZXRlRXhpc3RpbmdBcnJheVJvd3MudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgYW5kLCBlcSB9IGZyb20gJ2RyaXp6bGUtb3JtJ1xuXG5pbXBvcnQgdHlwZSB7IERyaXp6bGVEQiwgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi4vdHlwZXMnXG5cbnR5cGUgQXJncyA9IHtcbiAgYWRhcHRlcjogUG9zdGdyZXNBZGFwdGVyXG4gIGRiOiBEcml6emxlREJcbiAgcGFyZW50SUQ6IHVua25vd25cbiAgdGFibGVOYW1lOiBzdHJpbmdcbn1cblxuZXhwb3J0IGNvbnN0IGRlbGV0ZUV4aXN0aW5nQXJyYXlSb3dzID0gYXN5bmMgKHtcbiAgYWRhcHRlcixcbiAgZGIsXG4gIHBhcmVudElELFxuICB0YWJsZU5hbWUsXG59OiBBcmdzKTogUHJvbWlzZTx2b2lkPiA9PiB7XG4gIGNvbnN0IHRhYmxlID0gYWRhcHRlci50YWJsZXNbdGFibGVOYW1lXVxuXG4gIGNvbnN0IHdoZXJlQ29uc3RyYWludHMgPSBbZXEodGFibGUuX3BhcmVudElELCBwYXJlbnRJRCldXG5cbiAgYXdhaXQgZGIuZGVsZXRlKHRhYmxlKS53aGVyZShhbmQoLi4ud2hlcmVDb25zdHJhaW50cykpXG59XG4iXSwibmFtZXMiOlsiZGVsZXRlRXh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vbnN0IGRlbGV0ZUV4aXN0aW5nQXJyYXlSb3dzID0gYXN5bmMgKHtcbiAgYWRhcHRlcixcbiAgZGIsXG4gIHBhcmVudElELFxuICB0YWJsZU5hbWUsXG59OiBBcmdzKTogUHJvbWlzZTx2b2lkPiA9PiB7XG4gIGNvbnN0IHRhYmxlID0gYWRhcHRlci50YWJsZXNbdGFibGVOYW1lXVxuXG4gIGNvbnN0IHdoZXJlQ29uc3RyYWludHMgPSBbZXEodGFibGUuX3BhcmVudElELCBwYXJlbnRJRCldXG5cbiAgYXdhaXQgZGIuZGVsZXRlKHRhYmxlKS53aGVyZShhbmQoLi4ud2hlcmVDb25zdHJhaW50cykpXG59XG4iXSwibmFtZXMiOlsiZGVsZXRlRXhpc3RpbmdBcnJheVJvd3MiLCJhZGFwdGVyIiwiZGIiLCJwYXJlbnRJRCIsInRhYmxlTmFtZSIsInRhYmxlIiwidGFibGVzIiwid2hlcmVDb25zdHJhaW50cyIsImVxIiwiX3BhcmVudElEIiwiZGVsZXRlIiwid2hlcmUiLCJhbmQiXSwibWFwcGluZ3MiOiI7Ozs7K0JBV2FBOzs7ZUFBQUE7Ozs0QkFYVztBQVdqQixNQUFNQSwwQkFBMEIsT0FBTyxFQUM1Q0MsT0FBTyxFQUNQQyxFQUFFLEVBQ0ZDLFFBQVEsRUFDUkMsU0FBUyxFQUNKO0lBQ0wsTUFBTUMsUUFBUUosUUFBUUssTUFBTSxDQUFDRixVQUFVO0lBRXZDLE1BQU1HLG1CQUFtQjtRQUFDQyxJQUFBQSxjQUFFLEVBQUNILE1BQU1JLFNBQVMsRUFBRU47S0FBVTtJQUV4RCxNQUFNRCxHQUFHUSxNQUFNLENBQUNMLE9BQU9NLEtBQUssQ0FBQ0MsSUFBQUEsZUFBRyxLQUFJTDtBQUN0QyJ9
@@ -40,4 +40,4 @@ const deleteExistingRowsByPath = async ({ adapter, db, localeColumnName = '_loca
40
40
  }
41
41
  };
42
42
 
43
- //# sourceMappingURL=data:application/json;base64,e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Q1IsdUJBQXVCUyxHQUFHLENBQUNGO1lBQzdCLE9BQU87Z0JBQ0xMLGNBQWNPLEdBQUcsQ0FBQ0Y7WUFDcEI7UUFDRjtJQUNGO0lBRUEsSUFBSVAsdUJBQXVCVSxJQUFJLEdBQUcsR0FBRztRQUNuQyxNQUFNQyxtQkFBbUI7WUFBQ0MsSUFBQUEsY0FBRSxFQUFDVCxLQUFLLENBQUNSLGlCQUFpQixFQUFFQztTQUFVO1FBRWhFLElBQUlDLGdCQUNGYyxpQkFBaUJFLElBQUksQ0FBQ0MsSUFBQUEsbUJBQU8sRUFBQ1gsS0FBSyxDQUFDTixlQUFlLEVBQUVrQixNQUFNQyxJQUFJLENBQUNoQjtRQUVsRSxNQUFNUCxHQUFHd0IsTUFBTSxDQUFDZCxPQUFPZSxLQUFLLENBQUNDLElBQUFBLGVBQUcsS0FBSVI7SUFDdEM7SUFFQSxJQUFJVCxjQUFjUSxJQUFJLEdBQUcsR0FBRztRQUMxQixNQUFNQyxtQkFBbUI7WUFBQ0MsSUFBQUEsY0FBRSxFQUFDVCxLQUFLLENBQUNSLGlCQUFpQixFQUFFQztTQUFVO1FBRWhFLElBQUlDLGdCQUNGYyxpQkFBaUJFLElBQUksQ0FBQ0MsSUFBQUEsbUJBQU8sRUFBQ1gsS0FBSyxDQUFDTixlQUFlLEVBQUVrQixNQUFNQyxJQUFJLENBQUNkO1FBRWxFLE1BQU1ULEdBQUd3QixNQUFNLENBQUNkLE9BQU9lLEtBQUssQ0FBQ0MsSUFBQUEsZUFBRyxLQUFJUjtJQUN0QztBQUNGIn0=
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91cHNlcnRSb3cvaW5kZXgudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibG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YmxvY2tSb3cubG9jYWxlcykubGVuZ3RoID4gMCkge1xuICAgICAgICAgIE9iamVjdC5lbnRyaWVzKGJsb2NrUm93LmxvY2FsZXMpLmZvckVhY2goKFtibG9ja0xvY2FsZSwgYmxvY2tMb2NhbGVEYXRhXSkgPT4ge1xuICAgICAgICAgICAgaWYgKE9iamVjdC5rZXlzKGJsb2NrTG9jYWxlRGF0YSkubGVuZ3RoID4gMCkge1xuICAgICAgICAgICAgICBibG9ja0xvY2FsZURhdGEuX3BhcmVudElEID0gYmxvY2tSb3cucm93LmlkXG4gICAgICAgICAgICAgIGJsb2NrTG9jYWxlRGF0YS5fbG9jYWxlID0gYmxvY2tMb2NhbGVcbiAgICAgICAgICAgICAgYWNjLnB1c2goYmxvY2tMb2NhbGVEYXRhKVxuICAgICAgICAgICAgICBibG9ja0xvY2FsZUluZGV4TWFwLnB1c2goaSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9KVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGFjY1xuICAgICAgfSwgW10pXG5cbiAgICAgIGlmIChibG9ja0xvY2FsZVJvd3NUb0luc2VydC5sZW5ndGggPiAwKSB7XG4gICAgICAgIGF3YWl0IGRiXG4gICAgICAgICAgLmluc2VydChhZGFwdGVyLnRhYmxlc1tgJHtibG9ja1RhYmxlTmFtZX0ke2FkYXB0ZXIubG9jYWxlc1N1ZmZpeH1gXSlcbiAgICAgICAgICAudmFsdWVzKGJsb2NrTG9jYWxlUm93c1RvSW5zZXJ0KVxuICAgICAgICAgIC5yZXR1cm5pbmcoKVxuICAgICAgfVxuXG4gICAgICBhd2FpdCBpbnNlcnRBcnJheXMoe1xuICAgICAgICBhZGFwdGVyLFxuICAgICAgICBhcnJheXM6IGJsb2NrUm93cy5tYXAoKHsgYXJyYXlzIH0pID0+IGFycmF5cyksXG4gICAgICAgIGRiLFxuICAgICAgICBwYXJlbnRSb3dzOiBpbnNlcnRlZEJsb2NrUm93c1tibG9ja05hbWVdLFxu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xFQUNEekYsS0FBS3lGLEtBQUtDLElBQUFBLG1CQUFRLEVBQUMxRixJQUFJMkYsT0FBTyxDQUFDQyxNQUFNLENBQUNDLElBQUksRUFBRUosQ0FBQyxJQUUvQ1A7SUFDTjtJQUVBLHFDQUFxQztJQUNyQyw2QkFBNkI7SUFDN0IscUNBQXFDO0lBRXJDLE1BQU1ZLGVBQWVDLElBQUFBLG9DQUFpQixFQUFDO1FBQ3JDckc7UUFDQXNHLE9BQU87UUFDUG5HO1FBQ0FJO0lBQ0Y7SUFFQTZGLGFBQWEzRixLQUFLLEdBQUc4QyxJQUFBQSxjQUFFLEVBQUN2RCxRQUFRYyxNQUFNLENBQUNQLFVBQVUsQ0FBQ1IsRUFBRSxFQUFFYSxZQUFZYixFQUFFO0lBRXBFLE1BQU13RyxNQUFNLE1BQU1yRyxHQUFHc0csS0FBSyxDQUFDakcsVUFBVSxDQUFDa0csU0FBUyxDQUFDTDtJQUVoRCxxQ0FBcUM7SUFDckMsaUJBQWlCO0lBQ2pCLHFDQUFxQztJQUVyQyxNQUFNTSxTQUFTQyxJQUFBQSxlQUFTLEVBQUk7UUFDMUJULFFBQVFsRyxRQUFRaUcsT0FBTyxDQUFDQyxNQUFNO1FBQzlCakcsTUFBTXNHO1FBQ05wRztJQUNGO0lBRUEsT0FBT3VHO0FBQ1QifQ==
@@ -75,4 +75,4 @@ const insertArrays = async ({ adapter, arrays, db, parentRows })=>{
75
75
  }
76
76
  };
77
77
 
78
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91cHNlcnRSb3cvaW5zZXJ0QXJyYXlzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXBhcmFtLXJlYXNzaWduICovXG5pbXBvcnQgdHlwZSB7IEFycmF5Um93VG9JbnNlcnQgfSBmcm9tICcuLi90cmFuc2Zvcm0vd3JpdGUvdHlwZXMnXG5pbXBv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MEQ7UUFDMUQsSUFBSVYsSUFBSXBCLE1BQU0sQ0FBQ2tCLE1BQU0sR0FBRyxHQUFHO1lBQ3pCLE1BQU1wQixhQUFhO2dCQUNqQkM7Z0JBQ0FDLFFBQVFvQixJQUFJcEIsTUFBTTtnQkFDbEJDO2dCQUNBQyxZQUFZd0I7WUFDZDtRQUNGO0lBQ0Y7QUFDRiJ9
@@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
 
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJyYW5nZU1hcHBpbmdzIjoiIiwibWFwcGluZ3MiOiIifQ==
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
@@ -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+IHtcbiAgICByZXNbYCR7cHJlZml4fV8ke2tleX1gXSA9IHZhbFxuICAgIHJldHVybiByZXNcbiAgfSwge30gYXMgVClcbiJdLCJuYW1lcyI6WyJhcHBlbmRQcmVmaXhUb09iamVjdEtleXMiLCJvYmoiLCJwcmVmaXgiLCJPYmpl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UFPQyxPQUFPLENBQUNILEtBQUtJLE1BQU0sQ0FBQyxDQUFDQyxLQUFLLENBQUNDLEtBQUtDLElBQUk7UUFDekNGLEdBQUcsQ0FBQyxDQUFDLEVBQUVKLE9BQU8sQ0FBQyxFQUFFSyxJQUFJLENBQUMsQ0FBQyxHQUFHQztRQUMxQixPQUFPRjtJQUNULEdBQUcsQ0FBQyJ9
@@ -36,4 +36,4 @@ const createBlocksMap = (data)=>{
36
36
  return blocksMap;
37
37
  };
38
38
 
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvY3JlYXRlQmxvY2tzTWFwLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXBhcmFtLXJlYXNzaWduICovXG5leHBvcnQgdHlwZSBCbG9ja3NNYXAgPSB7XG4gIFtwYXRoOiBzdHJpbmddOiBSZWNvcmQ8c3RyaW5nLCB1bmtub3duPltdXG59XG5cbmV4cG9ydCBjb25zdCBjcmVhdGVCbG9ja3NNYXAgPSAoZGF0YTogUmVjb3JkPHN0cmluZywgdW5rbm93bj4pOiBCbG9ja3NNYXAgPT4ge1xuICBjb25zdCBibG9ja3NNYXA6IEJsb2Nrc01hcCA9IHt9XG5cbiAgT2JqZWN0LmVudHJpZXMoZGF0YSkuZm9yRWFjaCgoW2tleSwgcm93c10pID0+IHtcbiAgICBpZiAoa2V5LnN0YXJ0c1dpdGgoJ19ibG9ja3NfJykgJiYgQXJyYXkuaXNBcnJheShyb3dzKSkge1xuICAgICAgY29uc3QgYmxvY2tUeXBlID0ga2V5LnJlcGxhY2UoJ19ibG9ja3NfJywgJycpXG5cbiAgICAgIHJvd3MuZm9yRWFjaCgocm93KSA9PiB7XG4gICAgICAgIGlmICgnX3BhdGgnIGluIHJvdykge1xuICAgICAgICAgIGlmICghKHJvdy5fcGF0aCBpbiBibG9ja3NNYXApKSBibG9ja3N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zU3ViRmllbGRzIiwidHlwZSIsInRhYnMiLCJ0YWIiXSwibWFwcGluZ3MiOiI7Ozs7K0JBSWFBOzs7ZUFBQUE7Ozt1QkFGdUM7QUFFN0MsTUFBTUEsa0JBQWtCLENBQUNDO0lBQzlCLE9BQU9BLE9BQU9DLElBQUksQ0FBQyxDQUFDQztRQUNsQixJQUFJQyxJQUFBQSx1QkFBZ0IsRUFBQ0QsVUFBVUEsTUFBTUUsU0FBUyxFQUFFLE9BQU87UUFDdkQsSUFBSUMsSUFBQUEsd0JBQWlCLEVBQUNILFVBQVVBLE1BQU1JLElBQUksS0FBSyxTQUFTLE9BQU9QLGdCQUFnQkcsTUFBTUYsTUFBTTtRQUMzRixJQUFJRSxNQUFNSSxJQUFJLEtBQUssUUFBUSxPQUFPSixNQUFNSyxJQUFJLENBQUNOLElBQUksQ0FBQyxDQUFDTyxNQUFRVCxnQkFBZ0JTLElBQUlSLE1BQU07UUFDckYsT0FBTztJQUNUO0FBQ0YifQ==
@@ -12,4 +12,4 @@ function isArrayOfRows(data) {
12
12
  return Array.isArray(data);
13
13
  }
14
14
 
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvaXNBcnJheU9mUm93cy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gaXNBcnJheU9mUm93cyhkYXRhOiB1bmtub3duKTogZGF0YSBpcyBSZWNvcmQ8c3RyaW5nLCB1bmtub3duPltdIHtcbiAgcmV0dXJuIEFycmF5LmlzQXJyYXkoZGF0YSlcbn1cbiJdLCJuYW1lcyI6WyJpc0FycmF5T2ZSb3dzIiwiZGF0YSIsIkFycmF5IiwiaXNBcnJheSJdLCJyYW5nZU1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7IiwibWFwcGluZ3MiOiI7Ozs7K0JBQWdCQTs7O2VBQUFBOzs7QUFBVCxTQUFTQSxjQUFjQyxJQUFhO0lBQ3pDLE9BQU9DLE1BQU1DLE9BQU8sQ0FBQ0Y7QUFDdkIifQ==
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvaXNBcnJheU9mUm93cy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gaXNBcnJheU9mUm93cyhkYXRhOiB1bmtub3duKTogZGF0YSBpcyBSZWNvcmQ8c3RyaW5nLCB1bmtub3duPltdIHtcbiAgcmV0dXJuIEFycmF5LmlzQXJyYXkoZGF0YSlcbn1cbiJdLCJuYW1lcyI6WyJpc0FycmF5T2ZSb3dzIiwiZGF0YSIsIkFycmF5IiwiaXNBcnJheSJdLCJtYXBwaW5ncyI6Ijs7OzsrQkFBZ0JBOzs7ZUFBQUE7OztBQUFULFNBQVNBLGNBQWNDLElBQWE7SUFDekMsT0FBT0MsTUFBTUMsT0FBTyxDQUFDRjtBQUN2QiJ9
@@ -16,4 +16,4 @@ const migrationTableExists = async (db)=>{
16
16
  return exists;
17
17
  };
18
18
 
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvbWlncmF0aW9uVGFibGVFeGlzdHMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgc3FsIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5cbmltcG9ydCB0eXBlIHsgRHJpenpsZURCIH0gZnJvbSAnLi4vdHlwZXMnXG5cbmV4cG9ydCBjb25zdCBtaWdyYXRpb25UYWJsZUV4aXN0cyA9IGFzeW5jIChkYjogRHJpenpsZURCKTogUHJvbWlzZTxib29sZWFuPiA9PiB7XG4gIGNvbnN0IHF1ZXJ5UmVzID0gYXdhaXQgZGIuZXhlY3V0ZShzcWxgU0VMRUNUIHRvX3JlZ2NsYXNzKCdwdWJsaWMuc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UFDeEJELGdCQUFnQixDQUFDLENBQUMsRUFBRUYsSUFBSUksT0FBTyxDQUFDLENBQUMsQ0FBQztRQUNsQyxJQUFJSixlQUFlSyxpQkFBYSxFQUFFO1lBQ2hDSixPQUFPLENBQUMsRUFBRSxFQUFFRCxJQUFJSSxPQUFPLENBQUMsQ0FBQztZQUN6QixJQUFJSixJQUFJTSxJQUFJLEVBQUVMLE9BQU8sQ0FBQyxDQUFDLEVBQUVELElBQUlNLElBQUksQ0FBQyxDQUFDLENBQUM7UUFDdEM7SUFDRjtJQUNBLE9BQU9KO0FBQ1QifQ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payloadcms/db-postgres",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
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
- "@payloadcms/eslint-config": "1.1.1",
33
- "payload": "2.13.0"
32
+ "payload": "2.14.0",
33
+ "@payloadcms/eslint-config": "1.1.1"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "payload": "^2.0.0"