woodpecker/server/store/datastore/migration
qwerty287 b82ed13586
Database migrations run in seperate sessions and commit on success right away (#1822)
This isolates single migration tasks from each other.
The migration itself is now not atomic anymore but each single migration
now on it's own.
This takes load away from databases, as new sessions have a committed
schema available.

We also disable xorm.cache, as the speed improvements are minor but
invalid cache caused by schema changes did happen already in the past.

---------
Reverts #1817
Closes #1821

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-06-06 03:27:17 +02:00
..
testfiles Add tests framework for storage migration (#630) 2021-12-20 16:15:21 +01:00
000_legacy_to_xorm.go Remove MSSQL specific code and cleanups (#1796) 2023-05-31 21:27:57 +02:00
001_repos_drop_fallback.go Migrate to Xorm (#474) 2021-11-13 20:18:06 +01:00
002_repos_drop_allow_deploys_allow_tags.go Migrate to Xorm (#474) 2021-11-13 20:18:06 +01:00
003_fix_pr_secret_event_name.go Nits Collected over last month (#595) 2021-12-11 13:15:04 +01:00
004_repos_drop_repo_counter.go Calculate build number on creation (#615) 2021-12-18 20:37:51 +01:00
005_drop_senders.go Remove senders model (#923) 2022-05-17 21:27:44 +02:00
006_log_data_type.go Remove MSSQL specific code and cleanups (#1796) 2023-05-31 21:27:57 +02:00
007_secrets_add_user.go Remove MSSQL specific code and cleanups (#1796) 2023-05-31 21:27:57 +02:00
008_lowercase_secret_names.go Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
008_recreate_agents_table.go Remove MSSQL specific code and cleanups (#1796) 2023-05-31 21:27:57 +02:00
009_rename_builds_to_pipeline.go Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
010_columns_rename_builds_to_pipeline.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
011_columns_rename_procs_to_steps.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
012_rename_remote_to_forge.go Remove MSSQL specific code and cleanups (#1796) 2023-05-31 21:27:57 +02:00
013_rename_forge_id_to_forge_remote_id.go Fix linter (#1647) 2023-03-18 20:35:27 +01:00
014_remove_active_from_users.go Add users UI for admins (#1634) 2023-03-18 21:21:20 +01:00
015_remove_inactive_repos.go Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00
016_remove_files_table.go Remove unused file system api (#1791) 2023-05-31 18:03:03 +02:00
017_remove_machine_col.go Database migrations run in seperate sessions and commit on success right away (#1822) 2023-06-06 03:27:17 +02:00
common.go Remove MSSQL specific code and cleanups (#1796) 2023-05-31 21:27:57 +02:00
common_test.go fix sqlite migration on column drop of uncommon schemas (#629) 2021-12-20 09:59:27 +01:00
migration.go Database migrations run in seperate sessions and commit on success right away (#1822) 2023-06-06 03:27:17 +02:00
migration_test.go Fix linter (#1647) 2023-03-18 20:35:27 +01:00