Adding both environment variables.
This commit is contained in:
parent
056d65cb1e
commit
de9462403c
|
@ -10,6 +10,6 @@ export const MIGRATIONS: AppMigration[] = [
|
||||||
{
|
{
|
||||||
id: "20240604153647_initial_sqs",
|
id: "20240604153647_initial_sqs",
|
||||||
func: m20240604153647_initial_sqs,
|
func: m20240604153647_initial_sqs,
|
||||||
disabled: !env.SQS_MIGRATION_ENABLE,
|
disabled: !(env.SQS_MIGRATION_ENABLE || env.SQS_SEARCH_ENABLE),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
@ -40,7 +40,7 @@ const migration = async () => {
|
||||||
// only do initial search if environment is using SQS already
|
// only do initial search if environment is using SQS already
|
||||||
// initial search makes sure that all the indexes have been created
|
// initial search makes sure that all the indexes have been created
|
||||||
// and are ready to use, avoiding any initial waits for large tables
|
// and are ready to use, avoiding any initial waits for large tables
|
||||||
if (env.SQS_MIGRATION_ENABLE) {
|
if (env.SQS_MIGRATION_ENABLE || env.SQS_SEARCH_ENABLE) {
|
||||||
const tables = await sdk.tables.getAllInternalTables()
|
const tables = await sdk.tables.getAllInternalTables()
|
||||||
// do these one by one - running in parallel could cause problems
|
// do these one by one - running in parallel could cause problems
|
||||||
for (let table of tables) {
|
for (let table of tables) {
|
||||||
|
|
Loading…
Reference in New Issue