Skip to content

Commit bdb587c

Browse files
authored
Merge pull request #552 from MerginMaps/rc_2025.2.0
Add migration notes to release 2025.2.0
2 parents 33c2223 + 4fe1500 commit bdb587c

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

src/server/upgrade/index.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,47 @@ Make sure to always back up your database data before doing a migration.
1010

1111
[[toc]]
1212

13+
## Migration guide from 2024.4.x to 2025.2.x
14+
15+
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2025.2.0`.
16+
Perform the migration:
17+
18+
<MigrationType type="EE" />
19+
20+
1. Double check if below environment variables are available and filled in `.prod.env` environment file. If not, add them.
21+
22+
```bash
23+
SECURITY_EMAIL_SALT='<YOUR STRONG HASH>'
24+
SECURITY_BEARER_SALT='<YOUR STRONG HASH>'
25+
```
26+
27+
2. Start up your docker containers
28+
```bash
29+
$ docker-compose -f docker-compose.yml up # or similarly, based on your deployment
30+
```
31+
32+
3. Check that you are on correct versions (`07f2185e2428`, `df5b4efdae7b`).
33+
```bash
34+
$ docker exec merginmaps-server flask db current
35+
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
36+
INFO [alembic.runtime.migration] Will assume transactional DDL.
37+
07f2185e2428 (head)
38+
df5b4efdae7b (head)
39+
```
40+
41+
- If you do not see the version numbers at all, run the following commands:
42+
```bash
43+
$ docker exec merginmaps-server flask db stamp 07f2185e2428
44+
$ docker exec merginmaps-server flask db stamp df5b4efdae7b
45+
```
46+
47+
4. Run the database migration:
48+
```bash
49+
$ docker exec merginmaps-server flask db upgrade community@ba5051218de4
50+
$ docker exec merginmaps-server flask db upgrade enterprise@ba5ae5972c4a
51+
```
52+
53+
1354
## Migration guide from 2024.3.x to 2024.4.x
1455

1556
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2024.4.0`.

0 commit comments

Comments
 (0)