drone/internal/store/database/migrate/postgres
Johannes Batzill 335998505e [MISC] Introduce PathStore and Move PathLogic to Controller Layer (#226)
This change is a follow up on the effort to remove transactions and sync stores from the database layer, and move them in the application layer. It is addressing the repo + space store.
The following changes are included:
- Introduce PathStore storing resource paths (repo + space)
- Add foreign key from path.repo_id/space_id to repo.id/space.id
- Add foreign key from repo/space.parent_id to space.id
- Remove repo_sync and space_sync
- Move path creation logic to repo/space controller (for both creating primary paths for new repos/spaces, as well as creating alias spaces)
- Reimplement repo/space moving on controller layer
2023-01-18 11:34:12 -08:00
..
0000_create_extension_btree.up.sql Initial commit 2022-08-09 12:37:37 -07:00
0000_create_extension_citext.up.sql Initial commit 2022-08-09 12:37:37 -07:00
0000_create_extension_trgm.up.sql Initial commit 2022-08-09 12:37:37 -07:00
0001_create_table_paths.up.sql [MISC] Introduce PathStore and Move PathLogic to Controller Layer (#226) 2023-01-18 11:34:12 -08:00
0001_create_table_principals.up.sql Geting users by email, fix for Postgres (#150) 2023-01-04 19:16:09 +01:00
0001_create_table_repositories.up.sql [MISC] Introduce PathStore and Move PathLogic to Controller Layer (#226) 2023-01-18 11:34:12 -08:00
0001_create_table_spaces.up.sql [MISC] Introduce PathStore and Move PathLogic to Controller Layer (#226) 2023-01-18 11:34:12 -08:00
0001_create_table_tokens.up.sql DB & API refactor: Use snake case (#144) 2022-12-29 13:53:08 -08:00
0002_create_index_paths_repo_id_is_primary.up.sql [MISC] Introduce PathStore and Move PathLogic to Controller Layer (#226) 2023-01-18 11:34:12 -08:00
0002_create_index_paths_space_id_is_primary.up.sql [MISC] Introduce PathStore and Move PathLogic to Controller Layer (#226) 2023-01-18 11:34:12 -08:00
0002_create_index_principals_lower_email.up.sql [DB] fix index namings, improve composite index performance (#154) 2023-01-04 12:47:41 -08:00
0002_create_index_principals_sa_parent_id_sa_parent_type.up.sql [DB] fix index namings, improve composite index performance (#154) 2023-01-04 12:47:41 -08:00
0002_create_index_repositories_parent_id.up.sql [DB] fix index namings, improve composite index performance (#154) 2023-01-04 12:47:41 -08:00
0002_create_index_spaces_parent_id.up.sql [DB] fix index namings, improve composite index performance (#154) 2023-01-04 12:47:41 -08:00
0002_create_index_tokens_principal_id.up.sql [DB] fix index namings, improve composite index performance (#154) 2023-01-04 12:47:41 -08:00
0003_create_table_pullreqs.up.sql PR change state API; Removed rejected state (#220) 2023-01-17 16:04:30 +01:00
0004_create_index_pullreqs_source_repo_branch_target_repo_branch.up.sql Handling branch events for PRs (#221) 2023-01-18 13:26:20 +01:00
0004_create_index_pullreqs_target_repo_id_number.up.sql [DB] fix index namings, improve composite index performance (#154) 2023-01-04 12:47:41 -08:00
0005_create_table_pullreq_activities.up.sql Add parent_id column to the pullreq_activities DB table (#143) 2022-12-28 18:51:34 +01:00
0006_create_index_pullreq_activities_pullreq_id_order_sub_order.up.sql [DB] fix index namings, improve composite index performance (#154) 2023-01-04 12:47:41 -08:00
0007_create_table_webhooks.up.sql [Webhook] Add display_name/description/latest_execution_result to webhook (#180) 2023-01-11 17:11:10 -08:00
0008_create_index_webhooks_repo_id.up.sql [Webhook] Add API and DB Basics (#142) 2022-12-28 13:07:48 -08:00
0008_create_index_webhooks_space_id.up.sql [Webhook] Add API and DB Basics (#142) 2022-12-28 13:07:48 -08:00
0009_create_table_webhook_executions.up.sql [Webhook] Add API and DB Basics (#142) 2022-12-28 13:07:48 -08:00
0010_create_index_webhook_executions_webhook_id.up.sql [Webhook] Add API and DB Basics (#142) 2022-12-28 13:07:48 -08:00
0011_create_table_pullreq_reviews.up.sql pull request reviewers (#167) 2023-01-06 20:29:20 +01:00
0012_create_index_pullreq_reviews_pullreq_id.up.sql pull request reviewers (#167) 2023-01-06 20:29:20 +01:00
0013_create_table_pullreq_reviewers.up.sql pull request reviewers (#167) 2023-01-06 20:29:20 +01:00