Closed ericgaspar closed 1 year ago
!testme
From #377
I think it’s okay to merge this into
testing
.But IMO, before releasing it, we should still handle the case of the Focalboard plug-in on 7.3 installation, which in the current state is going to break the upgrade on many 7.3 systems.
@kemenaran how can i generate this error?
@kay0u I think the steps would be:
At this stage, the pgloader migration should fail entirely, when it attempts to load the focalboard_* tables from a 7.2 schema (on MariaDB) to a 7.3 schema (on Postgres).
This is an issue because the Boards plug-in went pre-packaged with Mattermost at some point, and so was installed by default.
@kay0u otherwise, some simpler steps to simulate the same issue:
focalboard_blocks.workspace_id
with a single valueThis should fail in the same way (because the column focalboard_blocks.workspace_id
doesn't exist in the target schema).
¯\_(ツ)_/¯ This makes the migration from 7.3.0 to 7.5.2 pass on my side
@kay0u yay! I tried to play with pgloader’s EXCLUDING TABLES MATCHING s/focalboard_/
, but couldn’t get it to work. I guess the brute-force solution is good too. Thanks!
I wrote a request for testing on the Yunohost forums; I guess we can merge this after a few successful migration reports.
@kay0u yay! I tried to play with pgloader’s
EXCLUDING TABLES MATCHING s/focalboard_/
, but couldn’t get it to work. I guess the brute-force solution is good too. Thanks!
I managed to make it work:
EXCLUDING TABLE NAMES MATCHING ~/^focalboard_/
https://access.crunchydata.com/documentation/pgloader/3.6.3/pgloader/
A regular expression begins with a tilde sign (~),
shall we merge?