Skip to content

Commit 3f23f79

Browse files
committed
Additional config options to migrate
1 parent 37a1dbb commit 3f23f79

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

scripts/procedures/migrations.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,30 @@ export const migration: T.ExpectedExports.migration = compat.migrations.fromMapp
55
'1.28.0.0': {
66
up: compat.migrations.updateConfig(
77
(config: any) => {
8-
// Add default soroban-announce config for users upgrading from versions before 1.28.0
9-
if (!config['soroban-announce']) {
10-
config['soroban-announce'] = {
11-
enabled: 'disabled',
12-
}
8+
// Add default soroban and pandotx config for users upgrading from versions before 1.28.0
9+
config['soroban-announce'] = {
10+
'enabled': 'disabled'
1311
}
12+
config['pandotx-push'] = true
13+
config['pandotx-retries'] = 2
14+
config['pandotx-fallback-mode'] = 'convenient'
1415
return config
1516
},
1617
true,
1718
{ version: '1.28.0.0', type: 'up' },
1819
),
1920
down: compat.migrations.updateConfig(
2021
(config: any) => {
21-
// Remove soroban-announce config when downgrading
2222
delete config['soroban-announce']
23+
delete config['pandotx-push']
24+
delete config['pandotx-retries']
25+
delete config['pandotx-fallback-mode']
2326
return config
2427
},
2528
true,
2629
{ version: '1.28.0.0', type: 'down' },
2730
),
2831
},
2932
},
30-
'1.27.0.0',
31-
)
33+
'1.28.0.0',
34+
)

0 commit comments

Comments
 (0)