diff options
Diffstat (limited to 'db/post_migrate/20221004074914_create_routing_table_for_builds_metadata.rb')
-rw-r--r-- | db/post_migrate/20221004074914_create_routing_table_for_builds_metadata.rb | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/db/post_migrate/20221004074914_create_routing_table_for_builds_metadata.rb b/db/post_migrate/20221004074914_create_routing_table_for_builds_metadata.rb index 71a8625dce2..a792fc91d3d 100644 --- a/db/post_migrate/20221004074914_create_routing_table_for_builds_metadata.rb +++ b/db/post_migrate/20221004074914_create_routing_table_for_builds_metadata.rb @@ -1,30 +1,7 @@ # frozen_string_literal: true class CreateRoutingTableForBuildsMetadata < Gitlab::Database::Migration[2.0] - include Gitlab::Database::PartitioningMigrationHelpers::TableManagementHelpers + def up; end - disable_ddl_transaction! - - TABLE_NAME = :ci_builds_metadata - PARENT_TABLE_NAME = :p_ci_builds_metadata - FIRST_PARTITION = 100 - PARTITION_COLUMN = :partition_id - - def up - convert_table_to_first_list_partition( - table_name: TABLE_NAME, - partitioning_column: PARTITION_COLUMN, - parent_table_name: PARENT_TABLE_NAME, - initial_partitioning_value: FIRST_PARTITION - ) - end - - def down - revert_converting_table_to_first_list_partition( - table_name: TABLE_NAME, - partitioning_column: PARTITION_COLUMN, - parent_table_name: PARENT_TABLE_NAME, - initial_partitioning_value: FIRST_PARTITION - ) - end + def down; end end |