@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 +1 -1
- package/src/models/index.ts +2 -0
package/package.json
CHANGED
package/src/models/index.ts
CHANGED
|
@@ -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
|