You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/server/upgrade/index.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,47 @@ Make sure to always back up your database data before doing a migration.
10
10
11
11
[[toc]]
12
12
13
+
## Migration guide from 2024.4.x to 2025.2.x
14
+
15
+
Get the latest <GitHubRepoid="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
+
<MigrationTypetype="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
+
13
54
## Migration guide from 2024.3.x to 2024.4.x
14
55
15
56
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