diff --git a/server/migrations/20250913000002-add-device-tenant-support.js b/server/migrations/20250913000002-add-device-tenant-support.js index caf8ac3..bb9fbe8 100644 --- a/server/migrations/20250913000002-add-device-tenant-support.js +++ b/server/migrations/20250913000002-add-device-tenant-support.js @@ -70,6 +70,10 @@ module.exports = { } else { console.log('⚠️ Column tenant_id already exists in devices table, skipping...'); } + } catch (error) { + console.log('⚠️ Migration skipped - tables may not exist yet:', error.message); + // Don't throw error, just skip this migration if tables don't exist + } }, async down(queryInterface, Sequelize) {