From 3480f6741c521f5cf9ec75e9e04e5c4cb1b7dd79 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 24 Nov 2022 14:23:04 +0000 Subject: [PATCH] Rename table settings migration and only run on dev apps --- packages/server/src/migrations/index.ts | 4 ++-- packages/types/src/sdk/migrations.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/src/migrations/index.ts b/packages/server/src/migrations/index.ts index de0a1ddc54..a66d793142 100644 --- a/packages/server/src/migrations/index.ts +++ b/packages/server/src/migrations/index.ts @@ -74,10 +74,10 @@ export const buildMigrations = () => { }) break } - case MigrationName.TABLE_SETTINGS: { + case MigrationName.TABLE_SETTINGS_LINKS_TO_ACTIONS: { serverMigrations.push({ ...definition, - appOpts: { all: true }, + appOpts: { dev: true }, fn: tableSettings.run, }) break diff --git a/packages/types/src/sdk/migrations.ts b/packages/types/src/sdk/migrations.ts index 8db355a039..4667ed0c8f 100644 --- a/packages/types/src/sdk/migrations.ts +++ b/packages/types/src/sdk/migrations.ts @@ -44,7 +44,7 @@ export enum MigrationName { EVENT_GLOBAL_BACKFILL = "event_global_backfill", EVENT_INSTALLATION_BACKFILL = "event_installation_backfill", GLOBAL_INFO_SYNC_USERS = "global_info_sync_users", - TABLE_SETTINGS = "table_settings", + TABLE_SETTINGS_LINKS_TO_ACTIONS = "table_settings_links_to_actions", // increment this number to re-activate this migration SYNC_QUOTAS = "sync_quotas_1", }