woodpecker/server/store/datastore/migration
qwerty287 0970f35df5
Do not store inactive repos (#1658)
Do not sync repos with forge if the repo is not necessary in DB.

In the DB, only repos that were active once or repos that are currently
active are stored. When trying to enable new repos, the repos list is
fetched from the forge instead and displayed directly. In addition to
this, the forge func `Perm` was removed and is now merged with `Repo`.

Solves a TODO on RepoBatch.

---------

Co-authored-by: Anbraten <anton@ju60.de>
2023-03-21 23:01:59 +01:00
..
testfiles Add tests framework for storage migration (#630) 2021-12-20 16:15:21 +01:00
000_legacy_to_xorm.go Use modern error handling and enforce it via lint (#1327) 2023-02-02 00:08:02 +01: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 Update type of 'log_data' from blob to longblob (#1050) 2022-07-29 14:57:18 +02:00
007_secrets_add_user.go Fix migration number (#1134) 2022-08-27 23:58:52 +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 Store an agents list and add agent heartbeats (#1189) 2023-01-28 14:13:04 +01: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 Fix linter (#1647) 2023-03-18 20:35:27 +01: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
common.go Use modern error handling and enforce it via lint (#1327) 2023-02-02 00:08:02 +01:00
common_test.go fix sqlite migration on column drop of uncommon schemas (#629) 2021-12-20 09:59:27 +01:00
migration.go Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00
migration_test.go Fix linter (#1647) 2023-03-18 20:35:27 +01:00