20 lines · 760 B · TypeScript
RawDownload
import type { CodeMigration } from "./runner";import { googleOpenApiR2BlobMigration } from "./google-openapi-r2-blobs";import { gcDeadDcrOAuthClientsMigration } from "./gc-dead-dcr-oauth-clients"; export interface CloudCodeMigrationRegistryOptions {  readonly r2Bucket?: string;  readonly limit?: number;} export const cloudCodeMigrations = ({  r2Bucket,  limit,}: CloudCodeMigrationRegistryOptions): readonly CodeMigration[] => [  ...(r2Bucket ? [googleOpenApiR2BlobMigration({ bucket: r2Bucket, limit })] : []),  // GC dead DCR oauth_client rows + backfill surviving rows' origin_issuer  // (issue #1120, Part C). No R2/bucket dependency, so always registered.  gcDeadDcrOAuthClientsMigration,]; export { runCodeMigrations } from "./runner";

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t