We restructured our database cloud_storage_files on 25 Aug 2022. If you have deployed this project before this date and would like to upgrade to the latest code. Please follow these instructions.
- Create
scripts/migration/2022-08-25_db_cloud-storage-files/.env.yaml
files based on thescripts/migration/2022-08-25_db_cloud-storage-files/.env.example.yaml
file format. - Fill in the configuration of the database connections you need to perform the migration.
- Make sure there is no traffic coming in to the flat-server before you actually start, i.e.: shut down the service and let it go into the maintenance phase
- Run
npx ts-node ./scripts/migration/2022-08-25_db_cloud-storage-files/index.ts
- Synchronise the flat-server code and redeploy the release.
We restructured our database cloud_storage_files on 31 May 2022. If you have deployed this project before this date and would like to upgrade to the latest code. Please follow these instructions.
- Create
scripts/migration/2022-05-31_db_cloud-storage-files/.env.yaml
files based on thescripts/migration/2022-05-31_db_cloud-storage-files/.env.example.yaml
file format. - Fill in the configuration of the database connections you need to perform the migration.
- Make sure there is no traffic coming in to the flat-server before you actually start, i.e.: shut down the service and let it go into the maintenance phase
- Run
npx ts-node ./scripts/migration/2022-05-26_db_cloud-storage-files/index.ts
- Synchronise the flat-server code and redeploy the release.