Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: mysql unsupported feature

mertmitd52a529703d7
diff --git a/packages/nocodb/src/meta/migrations/v2/nc_093_oauth_server.ts b/packages/nocodb/src/meta/migrations/v2/nc_093_oauth_server.ts
index f4136e6b96..2c5592f5fc 100644
--- a/packages/nocodb/src/meta/migrations/v2/nc_093_oauth_server.ts
+++ b/packages/nocodb/src/meta/migrations/v2/nc_093_oauth_server.ts
@@ -84,8 +84,10 @@ const up = async (knex: Knex) => {
// Indexes for performance
table.index('fk_client_id');
table.index('fk_user_id');
- table.index('access_token');
- table.index('refresh_token');
+ if (!['mysql', 'mysql2'].includes(knex.client.config.client)) {
+ table.index('access_token');
+ table.index('refresh_token');
+ }
table.index('access_token_expires_at');
table.index('refresh_token_expires_at');
table.index('is_revoked');