portainer/api/bolt/migrator
zees-dev 377326085d
feat(db): upgrade auto-backup backup and rollback support EE-867 EE-1158 (#5341)
* backport migration EE code structure

* filesystem copy function

* set db status to updating before migration - reset on completion

* support for auto-backup on version upgrade

* - rollback cli flag support (with confirmation)
- rollback implementation backport from EE

* removed edition as it is not required in CE

* migrated test datastore from bolttest to bolt package to make it usable for testing

* backported failsafe migration

* - backported tests from EE
- refactored tests to use test datastore

* test store implementing datastore interface

* addressed PR issues/improvements

* refactor test

* added backup file removal error logging

* resolved conflicts, updated code

* fixed missing bolttest package - migrated to bolt

* feat(migration): wrap migration errors to provide context for failure EE-1742 (#5711)

* feat(migrator): wrap errors to provide more context to failures EE-1742

* add overall failure back in. diff log file

* updated helm tests pointing to correct teststore

Co-authored-by: Matt Hook <hookenz@gmail.com>
2021-09-27 13:52:50 +13:00
..
migrate_ce.go feat(db): upgrade auto-backup backup and rollback support EE-867 EE-1158 (#5341) 2021-09-27 13:52:50 +13:00
migrate_dbversion0.go refactor(errors): reorganize errors (#3938) 2020-07-08 09:57:52 +12:00
migrate_dbversion1.go refactor(api): refactor base import path (#2788) 2019-03-21 14:20:14 +13:00
migrate_dbversion2.go refactor(api): refactor base import path (#2788) 2019-03-21 14:20:14 +13:00
migrate_dbversion3.go refactor(api): refactor base import path (#2788) 2019-03-21 14:20:14 +13:00
migrate_dbversion4.go refactor(api): restructure bolt package (#1981) 2018-06-19 13:15:10 +02:00
migrate_dbversion5.go refactor(api): restructure bolt package (#1981) 2018-06-19 13:15:10 +02:00
migrate_dbversion6.go refactor(api): restructure bolt package (#1981) 2018-06-19 13:15:10 +02:00
migrate_dbversion7.go refactor(api): refactor base import path (#2788) 2019-03-21 14:20:14 +13:00
migrate_dbversion8.go refactor(api): refactor base import path (#2788) 2019-03-21 14:20:14 +13:00
migrate_dbversion9.go refactor(api): refactor base import path (#2788) 2019-03-21 14:20:14 +13:00
migrate_dbversion10.go refactor(api): refactor base import path (#2788) 2019-03-21 14:20:14 +13:00
migrate_dbversion11.go refactor(api): refactor base import path (#2788) 2019-03-21 14:20:14 +13:00
migrate_dbversion12.go refactor(api): refactor base import path (#2788) 2019-03-21 14:20:14 +13:00
migrate_dbversion13.go feat(UAC): change default ownership to admininstrators (#2137) 2018-08-19 07:57:28 +02:00
migrate_dbversion14.go feat(templates): remove template management features (#3719) 2020-06-03 11:38:39 +12:00
migrate_dbversion15.go fix(api): set a default value for potentially empty snapshot interval (#2543) 2018-12-12 21:16:44 +13:00
migrate_dbversion16.go fix(extensions): fix an issue with extensions with expired licenses (#2628) 2019-01-18 10:00:18 +13:00
migrate_dbversion17.go feat(extensions): introduce RBAC extension (#2900) 2019-05-24 18:04:58 +12:00
migrate_dbversion18.go feat(edge): introduce support for Edge agent (#3031) 2019-07-26 10:38:07 +12:00
migrate_dbversion19.go feat(edge-compute): move host jobs to edge (#3840) 2020-06-25 15:25:51 +12:00
migrate_dbversion20.go refactor(portainer): introduce internal package (#3924) 2020-06-16 19:58:16 +12:00
migrate_dbversion22.go feat(edge-compute): add support for Edge stacks (#3827) 2020-05-14 14:14:28 +12:00
migrate_dbversion23.go feat(stacks): add the ability to stop a stack (#4042) 2020-08-04 10:18:53 +12:00
migrate_dbversion24.go feat(telemetry): replace GA with matomo (#4140) 2020-08-07 10:46:25 +12:00
migrate_dbversion25.go feat(endpoint): relocate docker security settings (#4657) 2021-02-09 21:09:06 +13:00
migrate_dbversion26.go fix(db): skip resource control migration if stack doesn't exist (#4879) 2021-02-25 10:27:49 +13:00
migrate_dbversion29.go feat(docker/volumes): change how volume resource id is calculated (#5067) 2021-07-19 10:43:49 +03:00
migrate_dbversion29_test.go feat(docker/volumes): change how volume resource id is calculated (#5067) 2021-07-19 10:43:49 +03:00
migrate_dbversion31.go add debug log (#5702) 2021-09-23 09:12:35 +12:00
migrate_dbversion33.go feat(stacks): support automated sync for stacks [EE-248] (#5340) 2021-08-17 13:12:07 +12:00
migrate_dbversion33_test.go feat(stacks): support automated sync for stacks [EE-248] (#5340) 2021-08-17 13:12:07 +12:00
migrator.go feat(db): upgrade auto-backup backup and rollback support EE-867 EE-1158 (#5341) 2021-09-27 13:52:50 +13:00