diff options
Diffstat (limited to 'db/migrate/20220902065316_create_default_partition_record.rb')
-rw-r--r-- | db/migrate/20220902065316_create_default_partition_record.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/db/migrate/20220902065316_create_default_partition_record.rb b/db/migrate/20220902065316_create_default_partition_record.rb deleted file mode 100644 index 6493fb23d4c..00000000000 --- a/db/migrate/20220902065316_create_default_partition_record.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -class CreateDefaultPartitionRecord < Gitlab::Database::Migration[2.0] - disable_ddl_transaction! - restrict_gitlab_migration gitlab_schema: :gitlab_ci - - def up - execute(<<~SQL) - INSERT INTO "ci_partitions" ("id", "created_at", "updated_at") - VALUES (100, now(), now()); - SQL - - reset_pk_sequence!('ci_partitions') - end - - def down - execute(<<~SQL) - DELETE FROM "ci_partitions" WHERE "ci_partitions"."id" = 100; - SQL - end -end |