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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. 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))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inibase",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "Karim Amahtil",