File tree 4 files changed +15
-1
lines changed
4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ## [ 1.2.0] - 2020-09-14
11
+
12
+ - Migrate DB to store all bookings with office ID rather than office name.
13
+ - Temporarily set API to readonly mode to avoid changes during migration.
14
+
10
15
## [ 1.1.0] - 2020-09-14
11
16
12
17
- Introduced users migration to store all active users in DynamoDB.
Original file line number Diff line number Diff line change @@ -414,6 +414,7 @@ const getHttpEnv = (): aws.types.input.lambda.FunctionEnvironment['variables'] =
414
414
DEFAULT_WEEKLY_QUOTA : defaultWeeklyQuota . toString ( ) ,
415
415
DATA_RETENTION_DAYS : logRetention . toString ( ) ,
416
416
SHOW_TEST_BANNER : showTestBanner . toString ( ) ,
417
+ READONLY : 'true' ,
417
418
} ;
418
419
if ( caseSensitiveEmail ) {
419
420
env . CASE_SENSITIVE_EMAIL = 'true' ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export const configureApp = (config: Config) => {
46
46
app . get ( '/api/config' , ( req , res , next ) => {
47
47
try {
48
48
const clientConfig = {
49
- version : '1.1 .0' ,
49
+ version : '1.2 .0' ,
50
50
showTestBanner : config . showTestBanner ,
51
51
auth :
52
52
config . authConfig . type === 'cognito'
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { options } from 'yargs';
2
2
import { SSM } from 'aws-sdk' ;
3
3
import { parseConfigFromEnv , Config } from '../app-config' ;
4
4
import { saveCognitoUsersToDb } from './1-save-users-to-db' ;
5
+ import { duplicateOfficeBooking } from './2-replace-office-booking-ids' ;
6
+ import { moveBookingsToV2 } from './3-move-bookings' ;
5
7
6
8
/** Collection all migrations that should be applied to the system */
7
9
type Migrations = {
@@ -25,6 +27,12 @@ const migrations: Migrations = {
25
27
'1-save-users-to-db' : {
26
28
execute : saveCognitoUsersToDb ,
27
29
} ,
30
+ '2-replace-office-booking-ids' : {
31
+ execute : duplicateOfficeBooking ,
32
+ } ,
33
+ '3-move-bookings' : {
34
+ execute : moveBookingsToV2 ,
35
+ } ,
28
36
} ;
29
37
30
38
/**
You can’t perform that action at this time.
0 commit comments