focalboard/server/services/store
Miguel de la Cruz 3acd505618
Refactor schema table migration mechanism (#3709)
* Refactor schema table migration mechanism

The old schema table migration code was initializing the migration
engine before changing the migrations table and was mixing queries on
two different database connections (the `s.db` connection and the
migrations `db` connection).

The changes on this commit take care of changing the migrations table
before the morph migration engine is initialized and they use the same
connection for all operations, better isolating the schema table
migration process.

* Update migrate function to take the cluster mutex first thing

* Split migration code and orchestration on different functions

* Wrap custom errors on data migrations

* Rename private migration method

* Update server/services/store/sqlstore/migrate.go

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
2022-09-01 15:05:11 +02:00
..
generators Standardize err not found (#2834) 2022-04-20 11:02:12 -04:00
mattermostauthlayer style: golang linting (shadow declaration) 2022-08-30 12:45:20 -05:00
mockstore getBlocks store API with query options (#3755) 2022-08-30 15:56:41 +02:00
sqlstore Refactor schema table migration mechanism (#3709) 2022-09-01 15:05:11 +02:00
storetests Props to preferences (#3722) 2022-08-29 12:55:12 +05:30
store.go getBlocks store API with query options (#3755) 2022-08-30 15:56:41 +02:00