summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-12-06 20:46:14 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-12-06 22:57:56 -0200
commit8c9e692095afb59111c73781c8ee501cb4cb2459 (patch)
tree5a7d5f0e6f683cbd3f102961e7530fb3e2e9ab8d /db
parent5237a55d62f8dcb021a041741b3f09cad7784a36 (diff)
downloadgitlab-ce-8c9e692095afb59111c73781c8ee501cb4cb2459.tar.gz
Fill project_repositories for hashed storage
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20181130102132_backfill_hashed_project_repositories.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/db/post_migrate/20181130102132_backfill_hashed_project_repositories.rb b/db/post_migrate/20181130102132_backfill_hashed_project_repositories.rb
index b989d9fb43d..7814cdba58a 100644
--- a/db/post_migrate/20181130102132_backfill_hashed_project_repositories.rb
+++ b/db/post_migrate/20181130102132_backfill_hashed_project_repositories.rb
@@ -1,11 +1,11 @@
# frozen_string_literal: true
-class BackfillHashedProjectRepositories < ActiveRecord::Migration[5.0]
+class BackfillHashedProjectRepositories < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
BATCH_SIZE = 1_000
- DELAY_INTERVAL = 1.minutes
+ DELAY_INTERVAL = 5.minutes
MIGRATION = 'BackfillHashedProjectRepositories'
disable_ddl_transaction!
@@ -21,7 +21,6 @@ class BackfillHashedProjectRepositories < ActiveRecord::Migration[5.0]
end
def down
- # Since there could have been existing rows before the migration
- # do not remove anything
+ # no-op: since there could have been existing rows before the migration do not remove anything
end
end