Only run migration if SQS is enabled.
This commit is contained in:
parent
dbda7b5ee4
commit
f062b73852
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue