From faa2a15b5a25ca64ae7fa9fa88d6be19425beabc Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Wed, 17 Sep 2025 06:36:36 +0200 Subject: [PATCH] Fix jwt-token --- server/migrations/20250913000002-add-device-tenant-support.js | 4 ++++ 1 file changed, 4 insertions(+) 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) {