@payloadcms/db-postgres 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../src/connect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAU/C,eAAO,MAAM,OAAO,EAAE,OAiGrB,CAAA"}
1
+ {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../src/connect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAU/C,eAAO,MAAM,OAAO,EAAE,OAkGrB,CAAA"}
package/dist/connect.js CHANGED
@@ -27,8 +27,10 @@ const connect = async function connect(payload) {
27
27
  try {
28
28
  this.pool = new _pg.Pool(this.poolOptions);
29
29
  await this.pool.connect();
30
+ const logger = this.logger || false;
30
31
  this.drizzle = (0, _nodepostgres.drizzle)(this.pool, {
31
- schema: this.schema
32
+ schema: this.schema,
33
+ logger
32
34
  });
33
35
  if (process.env.PAYLOAD_DROP_DATABASE === 'true') {
34
36
  this.payload.logger.info('---- DROPPING TABLES ----');
@@ -42,7 +44,7 @@ const connect = async function connect(payload) {
42
44
  }
43
45
  // Only push schema if not in production
44
46
  if (process.env.NODE_ENV === 'production' || process.env.PAYLOAD_MIGRATING === 'true' || this.push === false) return;
45
- const { pushSchema } = require('drizzle-kit/utils');
47
+ const { pushSchema } = require('drizzle-kit/payload');
46
48
  // This will prompt if clarifications are needed for Drizzle to push new schema
47
49
  const { apply, hasDataLoss, statementsToExecute, warnings } = await pushSchema(this.schema, this.drizzle);
48
50
  if (warnings.length) {
@@ -53,9 +55,9 @@ const connect = async function connect(payload) {
53
55
  message += `Accept warnings and push schema to database?`;
54
56
  const { confirm: acceptWarnings } = await (0, _prompts.default)({
55
57
  name: 'confirm',
58
+ type: 'confirm',
56
59
  initial: false,
57
- message,
58
- type: 'confirm'
60
+ message
59
61
  }, {
60
62
  onCancel: ()=>{
61
63
  process.exit(0);
@@ -88,4 +90,4 @@ const connect = async function connect(payload) {
88
90
  }
89
91
  };
90
92
 
91
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb25uZWN0LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgQ29ubmVjdCB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5cbmltcG9ydCB7IGVxLCBzcWwgfSBmcm9tICdkcml6emxlLW9ybSdcbmltcG9ydCB7IGRyaXp6bGUgfSBmcm9tICdkcml6emxlLW9ybS9ub2RlLXBvc3RncmVzJ1xuaW1wb3J0IHsgbnVtZXJpYywgcGdUYWJsZSwgdGltZXN0YW1wLCB2YXJjaGFyIH0gZnJvbSAnZHJpenpsZS1vcm0vcGctY29yZSdcbmltcG9ydCB7IFBvb2wgfSBmcm9tICdwZydcbmltcG9ydCBwcm9tcHRzIGZyb20gJ3Byb21wdHMnXG5cbmltcG9ydCB0eXBlIHsgUG9zdGdyZXNBZGFwdGVyIH0gZnJvbSAnLi90eXBlcydcblxuZXhwb3J0IGNvbnN0IGNvbm5lY3Q6IENvbm5lY3QgPSBhc3luYyBmdW5jdGlvbiBjb25uZWN0KHRoaXM6IFBvc3RncmVzQWRhcHRlciwgcGF5bG9hZCkge1xuICB0aGlzLnNjaGVtYSA9IHtcbiAgICAuLi50aGlzLnRhYmxlcyxcbiAgICAuLi50aGlzLnJlbGF0aW9ucyxcbiAgICAuLi50aGlzLmVudW1zLFxuICB9XG5cbiAgdHJ5IHtcbiAgICB0aGlzLnBvb2wgPSBuZXcgUG9vbCh0aGlzLnBvb2xPcHRpb25zKVxuICAgIGF3YWl0IHRoaXMucG9vbC5jb25uZWN0KClcblxuICAgIHRoaXMuZHJpenpsZSA9IGRyaXp6bGUodGhpcy5wb29sLCB7IHNjaGVtYTogdGhpcy5zY2hlbWEgfSlcbiAgICBpZiAocHJvY2Vz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EVBQUMsc0JBQXNCO1FBQ3JETCxNQUFNTSxJQUFBQSxlQUFPLEVBQUM7UUFDZEMsT0FBT0MsSUFBQUEsZUFBTyxFQUFDO1FBQ2ZDLFlBQVlDLElBQUFBLGlCQUFTLEVBQUM7UUFDdEJDLFlBQVlELElBQUFBLGlCQUFTLEVBQUM7SUFDeEI7SUFFQSxNQUFNRSxVQUFVLE1BQU0sSUFBSSxDQUFDckMsT0FBTyxDQUMvQnNDLE1BQU0sR0FDTkMsSUFBSSxDQUFDVixrQkFDTFcsS0FBSyxDQUFDQyxJQUFBQSxjQUFFLEVBQUNaLGlCQUFpQkcsS0FBSyxFQUFFO0lBRXBDLElBQUksQ0FBQ0ssUUFBUWpCLE1BQU0sRUFBRTtRQUNuQixNQUFNLElBQUksQ0FBQ3BCLE9BQU8sQ0FBQzBDLE1BQU0sQ0FBQ2Isa0JBQWtCYyxNQUFNLENBQUM7WUFDakRsQixNQUFNO1lBQ05PLE9BQU87UUFDVDtJQUNGLE9BQU87UUFDTCxNQUFNLElBQUksQ0FBQ2hDLE9BQU8sQ0FDZjRDLE1BQU0sQ0FBQ2Ysa0JBQ1BnQixHQUFHLENBQUM7WUFDSFQsWUFBWSxJQUFJVTtRQUNsQixHQUNDTixLQUFLLENBQUNDLElBQUFBLGNBQUUsRUFBQ1osaUJBQWlCRyxLQUFLLEVBQUU7SUFDdEM7QUFDRiJ9
@@ -51,7 +51,7 @@ const createMigration = async function createMigration({ migrationName, payload
51
51
  if (!_fs.default.existsSync(dir)) {
52
52
  _fs.default.mkdirSync(dir);
53
53
  }
54
- const { generateDrizzleJson, generateMigration } = require('drizzle-kit/utils');
54
+ const { generateDrizzleJson, generateMigration } = require('drizzle-kit/payload');
55
55
  const [yyymmdd, hhmmss] = new Date().toISOString().split('T');
56
56
  const formattedDate = yyymmdd.replace(/\D/g, '');
57
57
  const formattedTime = hhmmss.split('.')[0].replace(/\D/g, '');
@@ -71,9 +71,9 @@ const createMigration = async function createMigration({ migrationName, payload
71
71
  if (!sqlStatementsUp.length && !sqlStatementsDown.length) {
72
72
  const { confirm: shouldCreateBlankMigration } = await (0, _prompts.default)({
73
73
  name: 'confirm',
74
+ type: 'confirm',
74
75
  initial: false,
75
- message: 'No schema changes detected. Would you like to create a blank migration file?',
76
- type: 'confirm'
76
+ message: 'No schema changes detected. Would you like to create a blank migration file?'
77
77
  }, {
78
78
  onCancel: ()=>{
79
79
  process.exit(0);
@@ -92,4 +92,4 @@ const createMigration = async function createMigration({ migrationName, payload
92
92
  });
93
93
  };
94
94
 
95
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVNaWdyYXRpb24udHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbm8tcmVzdHJpY3RlZC1zeW50YXgsIG5vLWF3YWl0LWluLWxvb3AgKi9cbmltcG9ydCB0eXBlIHsgRHJpenpsZVNuYXBzaG90SlNPTiB9IGZyb20gJ2RyaXp6bGUta2l0L3V0aWxzJ1xuaW1wb3J0IHR5cGUgeyBDcmVhdGVNaWdyYXRpb24gfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuXG5pbXBvcnQgZnMgZnJvbSAnZnMnXG5pbXBvcnQgcHJvbXB0cyBmcm9tICdwcm9tcHRzJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhcHRlciB9IGZyb20gJy4vdHlwZXMnXG5cbmNvbnN0IG1pZ3JhdGlvblRlbXBsYXRlID0gKFxuICB1cFNRTD86IHN0cmluZyxcbiAgZG93blNRTD86IHN0cmluZyxcbikgPT4gYGltcG9ydCB7IE1pZ3JhdGVVcEFyZ3MsIE1pZ3JhdGVEb3duQXJncyB9IGZyb20gJ0BwYXlsb2FkY21zL2RiLXBvc3RncmVzJ1xuaW1wb3J0IHsgc3FsIH0gZnJvbSAnZHJpenpsZS1vcm0nXG5cbmV4cG9ydCBhc3luYyBmdW5jd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0sRUFBRTtRQUN4RCxNQUFNLEVBQUVDLFNBQVNDLDBCQUEwQixFQUFFLEdBQUcsTUFBTUMsSUFBQUEsZ0JBQU8sRUFDM0Q7WUFDRUMsTUFBTTtZQUNOQyxNQUFNO1lBQ05DLFNBQVM7WUFDVEMsU0FBUztRQUNYLEdBQ0E7WUFDRUMsVUFBVTtnQkFDUkMsUUFBUUMsSUFBSSxDQUFDO1lBQ2Y7UUFDRjtRQUdGLElBQUksQ0FBQ1IsNEJBQTRCO1lBQy9CTyxRQUFRQyxJQUFJLENBQUM7UUFDZjtJQUNGO0lBRUEsZUFBZTtJQUNmM0MsV0FBRSxDQUFDNEMsYUFBYSxDQUFDLENBQUMsRUFBRTVCLFNBQVMsS0FBSyxDQUFDLEVBQUVVLEtBQUttQixTQUFTLENBQUNoQixrQkFBa0IsTUFBTTtJQUU1RSxrQkFBa0I7SUFDbEI3QixXQUFFLENBQUM0QyxhQUFhLENBQ2QsQ0FBQyxFQUFFNUIsU0FBUyxHQUFHLENBQUMsRUFDaEJsQyxrQkFDRWlELGdCQUFnQkUsTUFBTSxHQUFHRixpQkFBaUJlLEtBQUssUUFBUUMsV0FDdkRmLGtCQUFrQkMsTUFBTSxHQUFHRCxtQkFBbUJjLEtBQUssUUFBUUM7SUFHL0RuRCxRQUFRb0QsTUFBTSxDQUFDQyxJQUFJLENBQUM7UUFBRUMsS0FBSyxDQUFDLHFCQUFxQixFQUFFbEMsU0FBUyxHQUFHLENBQUM7SUFBQztBQUNuRSJ9
@@ -159,7 +159,7 @@ const findMany = async function find({ adapter, fields, limit: limitArg, locale,
159
159
  }).from(table).where(where)
160
160
  });
161
161
  totalDocs = Number(countResult[0].count);
162
- totalPages = typeof limit === 'number' ? Math.ceil(totalDocs / limit) : 1;
162
+ totalPages = typeof limit === 'number' && limit !== 0 ? Math.ceil(totalDocs / limit) : 1;
163
163
  hasPrevPage = page > 1;
164
164
  hasNextPage = totalPages > page;
165
165
  pagingCounter = (page - 1) * limit + 1;
@@ -197,4 +197,4 @@ const findMany = async function find({ adapter, fields, limit: limitArg, locale,
197
197
  };
198
198
  };
199
199
 
200
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maW5kL2ZpbmRNYW55LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRmluZEFyZ3MgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHR5cGUgeyBGaWVsZCwgUGF5bG9hZFJlcXVlc3QsIFR5cGVXaXRoSUQgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBpbkFycmF5LCBzcWwgfSBmcm9tICdkcml6emxlLW9ybSdcblxuaW1wb3J0IHR5cGUgeyBQb3N0Z3Jlc0FkYXB0ZXIgfSBmcm9tICcuLi90eXBlcydcbmltcG9ydCB0eXBlIHsgQ2hhaW5lZE1ldGhvZHMgfSBmcm9tICcuL2NoYWluTWV0aG9kcydcblxuaW1wb3J0IGJ1aWxkUXVlcnkgZnJvbSAnLi4vcXVlcmllcy9idWlsZFF1ZXJ5J1xuaW1wb3J0IHsgdHJhbnNmb3JtIH0gZnJvbSAnLi4vdHJhbnNmb3JtL3JlYWQnXG5pbXBvcnQgeyBidWlsZEZpbmRNYW55QXJncyB9IGZyb20gJy4vYnVpbGRGaW5kTWFueUFyZ3MnXG5pbXBvcnQgeyBjaGFpbk1ldGhvZHMgfSBmcm9tICcuL2NoYWluTWV0aG9kcydcblxudHlwZSBBcmdzID0gT21pdDxGaW5kQXJncywgJ2NvbGxlY3Rpb24nPiAmIHtcbiAgYWRhcHRlcjogUG9zdGdyZXNBZGFwdGVyXG4gIGZpZWxkczogRmllbGRbXVxuICB0YWJsZU5hbWU6IHN0cmluZ1xufVxuXG5leHBvcnQgY29uc3QgZmluZE1hbnkgPSBhc3luYyBmdW5jdGlvbiBmaW5kKHtcbiAgYWRhcHRlcixcbiAgZm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AE7D,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,qBAAqB,CA4DjE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAmB,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAiC3E,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE7D,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,qBAAqB,CA0DjE"}
package/dist/index.js CHANGED
@@ -21,8 +21,6 @@ const _deleteMany = require("./deleteMany");
21
21
  const _deleteOne = require("./deleteOne");
22
22
  const _deleteVersions = require("./deleteVersions");
23
23
  const _destroy = require("./destroy");
24
- const _extendViteConfig = require("./extendViteConfig");
25
- const _extendWebpackConfig = require("./extendWebpackConfig");
26
24
  const _find = require("./find");
27
25
  const _findGlobal = require("./findGlobal");
28
26
  const _findGlobalVersions = require("./findGlobalVersions");
@@ -51,14 +49,13 @@ function _interop_require_default(obj) {
51
49
  function postgresAdapter(args) {
52
50
  function adapter({ payload }) {
53
51
  const migrationDir = findMigrationDir(args.migrationDir);
54
- (0, _extendWebpackConfig.extendWebpackConfig)(payload.config);
55
- (0, _extendViteConfig.extendViteConfig)(payload.config);
56
52
  return (0, _database.createDatabaseAdapter)({
57
53
  name: 'postgres',
58
54
  // Postgres-specific
59
55
  drizzle: undefined,
60
56
  enums: {},
61
57
  fieldConstraints: {},
58
+ logger: args.logger,
62
59
  pool: undefined,
63
60
  poolOptions: args.pool,
64
61
  push: args.push,
@@ -137,4 +134,4 @@ function postgresAdapter(args) {
137
134
  return srcDir;
138
135
  }
139
136
 
140
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IFBheWxvYWQgfSBmcm9tICdwYXl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K0MsTUFBTUMsUUFBUUQsR0FBRztJQUN2QixNQUFNRSxTQUFTQyxhQUFJLENBQUNDLE9BQU8sQ0FBQ0osS0FBSztJQUNqQyxNQUFNSyxVQUFVRixhQUFJLENBQUNDLE9BQU8sQ0FBQ0osS0FBSztJQUNsQyxNQUFNTSxxQkFBcUJILGFBQUksQ0FBQ0MsT0FBTyxDQUFDSixLQUFLO0lBRTdDLHNCQUFzQjtJQUN0QixJQUFJL0MsY0FBYyxPQUFPQTtJQUV6QiwrQkFBK0I7SUFDL0IsSUFBSXNELFdBQUUsQ0FBQ0MsVUFBVSxDQUFDTixTQUFTO1FBQ3pCLE9BQU9BO0lBQ1Q7SUFFQSxJQUFJSyxXQUFFLENBQUNDLFVBQVUsQ0FBQ0gsVUFBVTtRQUMxQixPQUFPQTtJQUNUO0lBRUEsSUFBSUUsV0FBRSxDQUFDQyxVQUFVLENBQUNGLHFCQUFxQjtRQUNyQyxPQUFPQTtJQUNUO0lBRUEsT0FBT0o7QUFDVCJ9
package/dist/migrate.js CHANGED
@@ -74,9 +74,11 @@ async function migrate() {
74
74
  }
75
75
  }
76
76
  async function runMigrationFile(payload, migration, batch) {
77
- const { generateDrizzleJson } = require('drizzle-kit/utils');
77
+ const { generateDrizzleJson } = require('drizzle-kit/payload');
78
78
  const start = Date.now();
79
- const req = {};
79
+ const req = {
80
+ payload
81
+ };
80
82
  payload.logger.info({
81
83
  msg: `Migrating: ${migration.name}`
82
84
  });
@@ -110,4 +112,4 @@ async function runMigrationFile(payload, migration, batch) {
110
112
  }
111
113
  }
112
114
 
113
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXJlc3RyaWN0ZWQtc3ludGF4LCBuby1hd2FpdC1pbi1sb29wICovXG5pbXBvcnQgdHlwZSB7IFBheWxvYWQgfSBmcm9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QUFRSSxNQUFNLENBQUNDLElBQUksQ0FBQztZQUFFQyxLQUFLLENBQUMsV0FBVyxFQUFFMEIsVUFBVVIsSUFBSSxDQUFDLEVBQUUsRUFBRWUsS0FBS0MsR0FBRyxLQUFLRixNQUFNLEdBQUcsQ0FBQztRQUFDO1FBQ3BGLE1BQU10QyxRQUFRZ0QsTUFBTSxDQUFDO1lBQ25CbEMsWUFBWTtZQUNabUMsTUFBTTtnQkFDSnpCLE1BQU1RLFVBQVVSLElBQUk7Z0JBQ3BCTjtnQkFDQTJCLFFBQVFEO1lBQ1Y7WUFDQUg7UUFDRjtRQUNBLE1BQU1TLElBQUFBLG9DQUFpQixFQUFDVDtJQUMxQixFQUFFLE9BQU9VLEtBQWM7UUFDckIsTUFBTUMsSUFBQUEsZ0NBQWUsRUFBQ1g7UUFDdEJ6QyxRQUFRSSxNQUFNLENBQUNpRCxLQUFLLENBQUM7WUFDbkJGO1lBQ0E3QyxLQUFLZ0QsSUFBQUEsc0JBQVUsRUFBQ0gsS0FBSyxDQUFDLHdCQUF3QixFQUFFbkIsVUFBVVIsSUFBSSxDQUFDLENBQUM7UUFDbEU7SUFDRjtBQUNGIn0=
@@ -46,7 +46,9 @@ async function migrateFresh() {
46
46
  payload.logger.debug({
47
47
  msg: `Found ${migrationFiles.length} migration files.`
48
48
  });
49
- const req = {};
49
+ const req = {
50
+ payload
51
+ };
50
52
  // Run all migrate up
51
53
  for (const migration of migrationFiles){
52
54
  payload.logger.info({
@@ -81,4 +83,4 @@ async function migrateFresh() {
81
83
  }
82
84
  }
83
85
 
84
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlRnJlc2gudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IHNxbCB9IGZyb20gJ2RyaXp6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NCQUFVLEVBQUNILEtBQUssQ0FBQyx3QkFBd0IsRUFBRVgsVUFBVWxCLElBQUksQ0FBQyxjQUFjLENBQUM7WUFDaEY7UUFDRjtJQUNGO0FBQ0YifQ==
@@ -31,7 +31,9 @@ async function migrateRefresh() {
31
31
  payload.logger.info({
32
32
  msg: `Rolling back batch ${latestBatch} consisting of ${existingMigrations.length} migration(s).`
33
33
  });
34
- const req = {};
34
+ const req = {
35
+ payload
36
+ };
35
37
  // Reverse order of migrations to rollback
36
38
  existingMigrations.reverse();
37
39
  for (const migration of existingMigrations){
@@ -108,4 +110,4 @@ async function migrateRefresh() {
108
110
  }
109
111
  }
110
112
 
111
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlUmVmcmVzaC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby1yZXN0cmljdGVkLXN5bnRheCwgbm8tYXdhaXQtaW4tbG9vcCAqL1xuaW1wb3J0IHR5cGUgeyBQYXlsb2FkUmVxdWVzdCB9IGZyb20gJ3BheWxvYWQvdHlwZXMnXG5cbmltcG9ydCB7IGdldE1pZ3JhdGlvbnMsIHJlYWRNaWdyYXRpb25GaWxlcyB9IGZyb20gJ3BheWxvYWQvZGF0YWJhc2UnXG5pbXBvcnQgeyBjb21taXRUcmFuc2FjdGlvbiB9IGZyb20gJ3BheWxvYWQvZGlzdC91dGlsaXRpZXMvY29tbWl0VHJhbnNhY3Rpb24nXG5pbXBvcnQgeyBpbml0VHJhbnNhY3Rpb24gfSBmcm9tICdwYXlsb2FkL2Rpc3QvdXRpbGl0aWVzL2luaXRUcmFuc2FjdGlvbidcbmltcG9ydCB7IGtpbGxUcmFuc2FjdGlvbiB9IGZyb20gJ3BheWxvYWQvZGlzdC91dGlsaXRpZXMva2lsbFRyYW5zYWN0aW9uJ1xuXG5pbXBvcnQgdHlwZSB7IFBvc3RncmVzQWRhc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FBQ0MsSUFBSSxDQUFDO2dCQUFFQyxLQUFLLENBQUMsV0FBVyxFQUFFRyxVQUFVSSxJQUFJLENBQUMsRUFBRSxFQUFFRyxLQUFLQyxHQUFHLEtBQUtGLE1BQU0sR0FBRyxDQUFDO1lBQUM7UUFDdEYsRUFBRSxPQUFPYSxLQUFjO1lBQ3JCLE1BQU1DLElBQUFBLGdDQUFlLEVBQUN0QjtZQUN0QlYsUUFBUU8sTUFBTSxDQUFDMEIsS0FBSyxDQUFDO2dCQUNuQkY7Z0JBQ0F0QixLQUFLeUIsSUFBQUEsc0JBQVUsRUFBQ0gsS0FBSyxDQUFDLHdCQUF3QixFQUFFbkIsVUFBVUksSUFBSSxDQUFDLGVBQWUsQ0FBQztZQUNqRjtRQUNGO0lBQ0Y7QUFDRiJ9
@@ -27,7 +27,9 @@ async function migrateReset() {
27
27
  });
28
28
  return;
29
29
  }
30
- const req = {};
30
+ const req = {
31
+ payload
32
+ };
31
33
  // Rollback all migrations in order
32
34
  for (const migration of existingMigrations){
33
35
  const migrationFile = migrationFiles.find((m)=>m.name === migration.name);
@@ -88,4 +90,4 @@ async function migrateReset() {
88
90
  }
89
91
  }
90
92
 
91
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9taWdyYXRlUmVzZXQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbm8tcmVzdHJpY3RlZC1zeW50YXgsIG5vLWF3YWl0LWluLWxvb3AgKi9cbmltcG9ydCB0eXBlIHsgUGF5bG9hZFJlcXVlc3QgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBnZXRNaWdyYXRpb25zLCByZWFkTWlncmF0aW9uRmlsZXMgfSBmcm9tICdwYXlsb2FkL2RhdGFiYXNlJ1xuaW1wb3J0IHsgY29tbWl0VHJhbnNhY3Rpb24gfSBmcm9tICdwYXlsb2FkL2Rpc3QvdX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SUFBSUMsT0FBTyxDQUFDLENBQUM7WUFFbEQsTUFBTUMsSUFBQUEsZ0NBQWUsRUFBQ3JCO1lBQ3RCVCxRQUFRTSxNQUFNLENBQUN5QixLQUFLLENBQUM7Z0JBQ25CSDtnQkFDQXBCO1lBQ0Y7WUFDQXdCLFFBQVFDLElBQUksQ0FBQztRQUNmO0lBQ0Y7SUFFQSx1QkFBdUI7SUFFdkIsTUFBTVosY0FBYyxNQUFNQyxJQUFBQSwwQ0FBb0IsRUFBQyxJQUFJLENBQUNDLE9BQU87SUFDM0QsSUFBSUYsYUFBYTtRQUNmLElBQUk7WUFDRixNQUFNckIsUUFBUXdCLE1BQU0sQ0FBQztnQkFDbkJFLFlBQVk7Z0JBQ1pRLE9BQU87b0JBQ0xDLE9BQU87d0JBQ0xDLFFBQVEsQ0FBQztvQkFDWDtnQkFDRjtZQUNGO1FBQ0YsRUFBRSxPQUFPUixLQUFjO1lBQ3JCNUIsUUFBUU0sTUFBTSxDQUFDeUIsS0FBSyxDQUFDO2dCQUFFQSxPQUFPSDtnQkFBS3BCLEtBQUs7WUFBK0I7UUFDekU7SUFDRjtBQUNGIn0=
@@ -1 +1 @@
1
- {"version":3,"file":"validateExistingBlockIsIdentical.d.ts","sourceRoot":"","sources":["../../src/schema/validateExistingBlockIsIdentical.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAS,MAAM,eAAe,CAAA;AAKjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,KAAK,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,YAAY,CAAA;CACpB,CAAA;AAsCD,eAAO,MAAM,gCAAgC,gDAK1C,IAAI,KAAG,IA0BT,CAAA"}
1
+ {"version":3,"file":"validateExistingBlockIsIdentical.d.ts","sourceRoot":"","sources":["../../src/schema/validateExistingBlockIsIdentical.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAS,MAAM,eAAe,CAAA;AAKjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,KAAK,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,YAAY,CAAA;CACpB,CAAA;AAyCD,eAAO,MAAM,gCAAgC,gDAK1C,IAAI,KAAG,IAwBT,CAAA"}
@@ -13,7 +13,12 @@ const _types = require("payload/types");
13
13
  const getFlattenedFieldNames = (fields, prefix = '')=>{
14
14
  return fields.reduce((fieldsToUse, field)=>{
15
15
  let fieldPrefix = prefix;
16
- if (field.type === 'blocks') {
16
+ if ([
17
+ 'array',
18
+ 'blocks',
19
+ 'relationship',
20
+ 'upload'
21
+ ].includes(field.type) || 'hasMany' in field && field.hasMany === true) {
17
22
  return fieldsToUse;
18
23
  }
19
24
  if ((0, _types.fieldHasSubFields)(field)) {
@@ -50,28 +55,26 @@ const getFlattenedFieldNames = (fields, prefix = '')=>{
50
55
  }, []);
51
56
  };
52
57
  const validateExistingBlockIsIdentical = ({ block, localized, rootTableName, table })=>{
53
- if (table) {
54
- const fieldNames = getFlattenedFieldNames(block.fields);
55
- const missingField = // ensure every field from the config is in the matching table
56
- fieldNames.find((name)=>Object.keys(table).indexOf(name) === -1) || // ensure every table column is matched for every field from the config
57
- Object.keys(table).find((fieldName)=>{
58
- if (![
59
- '_locale',
60
- '_order',
61
- '_parentID',
62
- '_path',
63
- '_uuid'
64
- ].includes(fieldName)) {
65
- return fieldNames.indexOf(fieldName) === -1;
66
- }
67
- });
68
- if (missingField) {
69
- throw new _errors.InvalidConfiguration(`The table ${rootTableName} has multiple blocks with slug ${block.slug}, but the schemas do not match. One block includes the field ${missingField}, while the other block does not.`);
70
- }
71
- if (Boolean(localized) !== Boolean(table._locale)) {
72
- throw new _errors.InvalidConfiguration(`The table ${rootTableName} has multiple blocks with slug ${block.slug}, but the schemas do not match. One is localized, but another is not. Block schemas of the same name must match exactly.`);
58
+ const fieldNames = getFlattenedFieldNames(block.fields);
59
+ const missingField = // ensure every field from the config is in the matching table
60
+ fieldNames.find((name)=>Object.keys(table).indexOf(name) === -1) || // ensure every table column is matched for every field from the config
61
+ Object.keys(table).find((fieldName)=>{
62
+ if (![
63
+ '_locale',
64
+ '_order',
65
+ '_parentID',
66
+ '_path',
67
+ '_uuid'
68
+ ].includes(fieldName)) {
69
+ return fieldNames.indexOf(fieldName) === -1;
73
70
  }
71
+ });
72
+ if (missingField) {
73
+ throw new _errors.InvalidConfiguration(`The table ${rootTableName} has multiple blocks with slug ${block.slug}, but the schemas do not match. One block includes the field ${missingField}, while the other block does not.`);
74
+ }
75
+ if (Boolean(localized) !== Boolean(table._locale)) {
76
+ throw new _errors.InvalidConfiguration(`The table ${rootTableName} has multiple blocks with slug ${block.slug}, but the schemas do not match. One is localized, but another is not. Block schemas of the same name must match exactly.`);
74
77
  }
75
78
  };
76
79
 
77
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zY2hlbWEvdmFsaWRhdGVFeGlzdGluZ0Jsb2NrSXNJZGVudGljYWwudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBCbG9jaywgRmllbGQgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgeyBJbnZhbGlkQ29uZmlndXJhdGlvbiB9IGZyb20gJ3BheWxvYWQvZXJyb3JzJ1xuaW1wb3J0IHsgZmllbGRBZmZlY3RzRGF0YSwgZmllbGRIYXNTdWJGaWVsZHMsIHRhYkhhc05hbWUgfSBmcm9tICdwYXlsb2FkL3R5cGVzJ1xuXG5pbXBvcnQgdHlwZSB7IEdlbmVyaWNUYWJsZSB9IGZyb20gJy4uL3R5cGVzJ1xuXG50e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