1
0
Fork 0
mirror of synced 2024-09-09 22:16:26 +12:00

Only run migration if SQS is enabled.

This commit is contained in:
mike12345567 2024-06-04 17:39:53 +01:00
parent dbda7b5ee4
commit f062b73852
2 changed files with 12 additions and 8 deletions

View file

@ -1,13 +1,17 @@
// This file should never be manually modified, use `yarn add-app-migration` in order to add a new one
import env from "../environment"
import { AppMigration } from "."
import m20240604153647_update_link_documents from "./migrations/20240604153647_update_link_documents"
import m20240604153647_initial_sqs from "./migrations/20240604153647_initial_sqs"
export const MIGRATIONS: AppMigration[] = [
// Migrations will be executed sorted by id
{
id: "20240604153647_update_link_documents",
func: m20240604153647_update_link_documents,
},
]
// Migrations will be executed sorted by ID
export const MIGRATIONS: AppMigration[] = []
// only run the SQS migration if SQS is enabled
if (env.SQS_SEARCH_ENABLE) {
MIGRATIONS.push({
id: "20240604153647_initial_sqs",
func: m20240604153647_initial_sqs,
})
}