inibase 1.5.8 → 1.5.9
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/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -228,7 +228,7 @@ export default class Inibase {
|
|
|
228
228
|
// if schema file exists, update columns files names based on field id
|
|
229
229
|
if ((await File.isExists(join(tablePath, `schema.${this.schemaFileExtension}`))) &&
|
|
230
230
|
table.schema?.length) {
|
|
231
|
-
const replaceOldPathes = Utils.findChangedProperties(this.schemaToIdsPath(tableName, table.schema), this.schemaToIdsPath(tableName, schema));
|
|
231
|
+
const replaceOldPathes = Utils.findChangedProperties(this.schemaToIdsPath(tableName, table.schema.filter(({ key }) => !["createdAt", "updatedAt"].includes(key))), this.schemaToIdsPath(tableName, schema));
|
|
232
232
|
if (replaceOldPathes)
|
|
233
233
|
await Promise.allSettled(Object.entries(replaceOldPathes).map(async ([oldPath, newPath]) => {
|
|
234
234
|
if (await File.isExists(join(tablePath, oldPath))) {
|