Skip to content

Commit 793bcda

Browse files
committed
Add instructions for fixing migration from bitnami DB image to a regular one
1 parent 5678eb0 commit 793bcda

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,3 +325,24 @@ ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO {readonly_us
325325
-- Revoke access to authtoken_token table
326326
REVOKE SELECT ON authtoken_token FROM {readonly_username};
327327
```
328+
329+
## Migration from bitnami/postgresql to library/postgres DB image
330+
331+
After migration from the bitnami/postgresql to library/postgres DB image, you might notice a working in logs like this:
332+
333+
```log
334+
...
335+
WARNING: database "waldur" has a collation version mismatch
336+
DETAIL: The database was created using collation version 2.36, but the operating system provides version 2.41.
337+
...
338+
```
339+
340+
In this case, you can simply update the collaction version and reindex the Waldur DB and the public schema:
341+
342+
```postgresql
343+
-- Run these commands in the psql shell of the waldur-db container
344+
345+
ALTER DATABASE waldur REFRESH COLLATION VERSION;
346+
REINDEX DATABASE waldur;
347+
REINDEX SCHEMA public;
348+
```

0 commit comments

Comments
 (0)