@@ -82,26 +79,24 @@ 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.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["project_id"],name: "idx_project_registry_on_repo_checksums_and_failure_partial",where: "((repository_verification_checksum_sha IS NULL) AND (last_repository_verification_failure IS NULL))",using: :btree
t.index["project_id"],name: "idx_project_registry_on_repository_failure_partial",where: "(last_repository_verification_failure IS NOT NULL)",using: :btree
t.index["project_id"],name: "idx_project_registry_on_wiki_checksums_and_failure_partial",where: "((wiki_verification_checksum_sha IS NULL) AND (last_wiki_verification_failure IS NULL))",using: :btree
t.index["project_id"],name: "idx_project_registry_on_wiki_failure_partial",where: "(last_wiki_verification_failure IS NOT NULL)",using: :btree
t.index["repository_retry_count"],name: "idx_project_registry_failed_repositories_partial",where: "((repository_retry_count > 0) OR (last_repository_verification_failure IS NOT NULL) OR repository_checksum_mismatch)",using: :btree
t.index["repository_retry_count"],name: "idx_project_registry_pending_repositories_partial",where: "((repository_retry_count IS NULL) AND (last_repository_successful_sync_at IS NOT NULL) AND ((resync_repository = true) OR ((repository_verification_checksum_sha IS NULL) AND (last_repository_verification_failure IS NULL))))",using: :btree
t.index["repository_verification_checksum_sha"],name: "idx_project_registry_on_repository_checksum_sha_partial",where: "(repository_verification_checksum_sha IS NULL)",using: :btree
t.index["wiki_verification_checksum_sha"],name: "idx_project_registry_on_wiki_checksum_sha_partial",where: "(wiki_verification_checksum_sha IS NULL)",using: :btree
end
add_index"project_registry",["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
add_index"project_registry",["last_repository_successful_sync_at"],name: "idx_unsynced_repositories_partial",where: "(last_repository_successful_sync_at IS NULL)",using: :btree
add_index"project_registry",["project_id"],name: "idx_project_registry_on_repo_checksums_and_failure_partial",where: "((repository_verification_checksum_sha IS NULL) AND (last_repository_verification_failure IS NULL))",using: :btree
add_index"project_registry",["project_id"],name: "idx_project_registry_on_repository_failure_partial",where: "(last_repository_verification_failure IS NOT NULL)",using: :btree
add_index"project_registry",["project_id"],name: "idx_project_registry_on_wiki_checksums_and_failure_partial",where: "((wiki_verification_checksum_sha IS NULL) AND (last_wiki_verification_failure IS NULL))",using: :btree
add_index"project_registry",["project_id"],name: "idx_project_registry_on_wiki_failure_partial",where: "(last_wiki_verification_failure IS NOT NULL)",using: :btree
add_index"project_registry",["repository_retry_count"],name: "idx_project_registry_failed_repositories_partial",where: "((repository_retry_count > 0) OR (last_repository_verification_failure IS NOT NULL) OR repository_checksum_mismatch)",using: :btree
add_index"project_registry",["repository_retry_count"],name: "idx_project_registry_pending_repositories_partial",where: "((repository_retry_count IS NULL) AND (last_repository_successful_sync_at IS NOT NULL) AND ((resync_repository = true) OR ((repository_verification_checksum_sha IS NULL) AND (last_repository_verification_failure IS NULL))))",using: :btree
add_index"project_registry",["repository_verification_checksum_sha"],name: "idx_project_registry_on_repository_checksum_sha_partial",where: "(repository_verification_checksum_sha IS NULL)",using: :btree