Add last verification columns to project_registry

parent 648a38d0
# frozen_string_literal: true
class AddLastVerificationColumnsToProjectRegistry < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def change
add_column :project_registry, :last_repository_verification_ran_at, :datetime_with_timezone
add_column :project_registry, :last_wiki_verification_ran_at, :datetime_with_timezone
end
end
......@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20180806020615) do
ActiveRecord::Schema.define(version: 20181213184140) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
......@@ -79,6 +79,8 @@ ActiveRecord::Schema.define(version: 20180806020615) do
t.boolean "wiki_missing_on_primary"
t.integer "repository_verification_retry_count"
t.integer "wiki_verification_retry_count"
t.datetime_with_timezone "last_repository_verification_ran_at"
t.datetime_with_timezone "last_wiki_verification_ran_at"
t.index ["last_repository_successful_sync_at"], name: "idx_project_registry_synced_repositories_partial", where: "((resync_repository = false) AND (repository_retry_count IS NULL) AND (repository_verification_checksum_sha IS NOT NULL))", using: :btree
t.index ["last_repository_successful_sync_at"], name: "index_project_registry_on_last_repository_successful_sync_at", using: :btree
t.index ["last_repository_synced_at"], name: "index_project_registry_on_last_repository_synced_at", using: :btree
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment