@autofleet/sadot 0.13.2-beta.1 → 0.13.2-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/sadot",
3
- "version": "0.13.2-beta.1",
3
+ "version": "0.13.2-beta.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -108,7 +108,9 @@ const initTables = async (
108
108
  const currentSadotSchemaVersion = migrations.at(-1);
109
109
  const expectedSchemaVersionIndex = migrations.findIndex((m) => (m as any).name === CUSTOM_FIELDS_SCHEMA_VERSION);
110
110
 
111
+ logger.info('custom-fields: migrations', { migrations, currentSadotSchemaVersion, expectedSchemaVersionIndex });
111
112
  if (!currentSadotSchemaVersion || (currentSadotSchemaVersion as any).name !== CUSTOM_FIELDS_SCHEMA_VERSION) {
113
+ logger.info('custom-fields: syncing models');
112
114
  await CustomFieldDefinition.sync({ alter: true });
113
115
  await CustomFieldValue.sync({ alter: true });
114
116
  // T.Y TODO: Remove the if statement once we're ready to add the new entries table for all MS