Skip to content

Commit

Permalink
[OpenAPI] Spec updates (#1525)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Rico <[email protected]>
Co-authored-by: github-merge-queue[bot] <github-merge-queue[bot]@users.noreply.github.com>
Co-authored-by: Alexis Rico <[email protected]>
  • Loading branch information
3 people authored Jul 4, 2024
1 parent 52fa99e commit b101306
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
12 changes: 8 additions & 4 deletions cli/src/commands/pull/pull.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ const pgrollMigration1: Schemas.MigrationHistoryItem = {
migrationType: 'pgroll',
name: 'mig_cmkjcdrj7c92neg7lnmg',
parent: 'mig_cmkjccmg1th0of00f5n0',
startedAt: '2024-01-18T14:31:20.795975Z'
startedAt: '2024-01-18T14:31:20.795975Z',
schema: 'public'
};

const pgrollMigration2: Schemas.MigrationHistoryItem = {
Expand All @@ -60,7 +61,8 @@ const pgrollMigration2: Schemas.MigrationHistoryItem = {
migrationType: 'inferred',
name: 'mig_abcdcdrj7c92neg7lefg',
parent: 'mig_abcdcdrj7c92neg7lerr',
startedAt: '2024-01-18T14:31:20.795975Z'
startedAt: '2024-01-18T14:31:20.795975Z',
schema: 'public'
};
const pgrollMigration3: Schemas.MigrationHistoryItem = {
done: true,
Expand All @@ -69,7 +71,8 @@ const pgrollMigration3: Schemas.MigrationHistoryItem = {
migrationType: 'pgroll',
name: 'mig_abcdcdrj7c92neg7lefg',
parent: 'mig_abcdcdrj7c92neg7lerr',
startedAt: '2024-01-18T14:31:20.795975Z'
startedAt: '2024-01-18T14:31:20.795975Z',
schema: 'public'
};
const pgrollMigration4: Schemas.MigrationHistoryItem = {
done: true,
Expand All @@ -78,7 +81,8 @@ const pgrollMigration4: Schemas.MigrationHistoryItem = {
migrationType: 'pgroll',
name: 'mig_xyzdcdrj7c92neg7lxyz',
parent: 'mig_xyzdcdrj7c92neg7lxyz',
startedAt: '2024-01-18T14:31:20.795975Z'
startedAt: '2024-01-18T14:31:20.795975Z',
schema: 'public'
};

const baseFetch = (url: string, request: any) => {
Expand Down
9 changes: 6 additions & 3 deletions cli/src/commands/push/push.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ const pgrollMigration1: Schemas.MigrationHistoryItem = {
migrationType: 'pgroll',
name: 'mig_cmkjcdrj7c92neg7lnmg',
parent: 'mig_cmkjccmg1th0of00f5n0',
startedAt: '2024-01-18T14:31:20.795975Z'
startedAt: '2024-01-18T14:31:20.795975Z',
schema: 'public'
};

const pgrollMigration2: Schemas.MigrationHistoryItem = {
Expand All @@ -76,7 +77,8 @@ const pgrollMigration2: Schemas.MigrationHistoryItem = {
migrationType: 'pgroll',
name: 'mig_abcdcdrj7c92neg7lefg',
parent: 'mig_cmkjccmg1th0of00f5n0',
startedAt: '2024-01-18T14:31:20.795975Z'
startedAt: '2024-01-18T14:31:20.795975Z',
schema: 'public'
};

const pgrollMigration3: Schemas.MigrationHistoryItem = {
Expand All @@ -86,7 +88,8 @@ const pgrollMigration3: Schemas.MigrationHistoryItem = {
migrationType: 'inferred',
name: 'mig_xbcdcdrj7c92neg7lefx',
parent: 'mig_cmkjccmg1th0of00f5n0',
startedAt: '2024-01-18T14:31:20.795975Z'
startedAt: '2024-01-18T14:31:20.795975Z',
schema: 'public'
};

const baseFetch = (url: string, request: any) => {
Expand Down
1 change: 0 additions & 1 deletion packages/client/src/api/dataPlaneComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ export type StartMigrationRequestBody = {
operations: {
[key: string]: any;
}[];
adaptTables?: boolean;
};

export type StartMigrationVariables = {
Expand Down
4 changes: 4 additions & 0 deletions packages/client/src/api/dataPlaneSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ export type MigrationHistoryItem = {
* The name of the migration
*/
name: string;
/**
* The schema in which the migration was applied
*/
schema: string;
/**
* The pgroll migration that was applied
*/
Expand Down

0 comments on commit b101306

Please sign in to comment.