focalboard/server
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
..
admin-scripts Update focalboard endpoints to v2 namespace (#2781) 2022-04-13 15:24:32 -05:00
api Props to preferences (#3722) 2022-08-29 12:55:12 +05:30
app Props to preferences (#3722) 2022-08-29 12:55:12 +05:30
assets Custom template's default card template works (#3335) 2022-07-29 11:27:18 -06:00
auth Restoring guest account access and adding backend part of the guest accounts support (#2929) 2022-08-24 17:08:58 -05:00
client Add disableNotify param to client APIs, to match Rest APIs (#3723) 2022-08-23 10:37:49 -05:00
integrationtests Props to preferences (#3722) 2022-08-29 12:55:12 +05:30
main Print log server information on plugin run (#3711) 2022-08-19 13:16:18 -04:00
model getBlocks store API with query options (#3755) 2022-08-30 15:56:41 +02:00
server Multi product architecture (#3381) 2022-07-18 13:21:57 -04:00
services Refactor schema table migration mechanism (#3709) 2022-09-01 15:05:11 +02:00
swagger Props to preferences (#3722) 2022-08-29 12:55:12 +05:30
utils Multi product architecture (#3381) 2022-07-18 13:21:57 -04:00
web Multi product architecture (#3381) 2022-07-18 13:21:57 -04:00
ws getBlocks store API with query options (#3755) 2022-08-30 15:56:41 +02:00
.golangci.yml add cyclo complexity, update migrate() to use defer (#3257) 2022-06-21 09:12:55 -06:00
go.mod Add foundation tests (#3670) 2022-08-18 17:03:33 +02:00
go.sum Add foundation tests (#3670) 2022-08-18 17:03:33 +02:00
go.tools.mod Updated go version (#3189) 2022-06-06 10:18:21 +02:00
go.tools.sum Adding support for patch blocks (#877) 2021-08-06 14:10:24 +02:00