Skip to content

Commit 707ec60

Browse files
committed
refactor(postgres): rename planner-types back to planner-target-details
The rebase incorrectly replaced Alberto's descriptive planner-target-details.ts (from PR #241) with our generic planner-types.ts. The original name is better: it describes what the module contains (target detail types and builder), whereas "planner-types" is vague and misleading given it also exports a function.
1 parent 0e24b55 commit 707ec60

13 files changed

Lines changed: 12 additions & 12 deletions

packages/3-targets/3-targets/postgres/src/core/migrations/planner-recipes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
columnNullabilityCheck,
99
qualifyTableName,
1010
} from './planner-sql-checks';
11-
import { buildTargetDetails, type PostgresPlanTargetDetails } from './planner-types';
11+
import { buildTargetDetails, type PostgresPlanTargetDetails } from './planner-target-details';
1212

1313
export function buildAddColumnOperationIdentity(
1414
schema: string,

packages/3-targets/3-targets/postgres/src/core/migrations/planner-reconciliation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
buildTargetDetails,
2525
type PlanningMode,
2626
type PostgresPlanTargetDetails,
27-
} from './planner-types';
27+
} from './planner-target-details';
2828

2929
// ============================================================================
3030
// Public API

packages/3-targets/3-targets/postgres/src/core/migrations/planner-types.ts renamed to packages/3-targets/3-targets/postgres/src/core/migrations/planner-target-details.ts

File renamed without changes.

packages/3-targets/3-targets/postgres/src/core/migrations/planner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import {
5353
type OperationClass,
5454
type PlanningMode,
5555
type PostgresPlanTargetDetails,
56-
} from './planner-types';
56+
} from './planner-target-details';
5757

5858
type PlannerFrameworkComponents = SqlMigrationPlannerPlanOptions extends {
5959
readonly frameworkComponents: infer T;

packages/3-targets/3-targets/postgres/src/core/migrations/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { SqlQueryError } from '@prisma-next/sql-errors';
2121
import { ifDefined } from '@prisma-next/utils/defined';
2222
import type { Result } from '@prisma-next/utils/result';
2323
import { ok, okVoid } from '@prisma-next/utils/result';
24-
import type { PostgresPlanTargetDetails } from './planner-types';
24+
import type { PostgresPlanTargetDetails } from './planner-target-details';
2525
import {
2626
buildLedgerInsertStatement,
2727
buildWriteMarkerStatements,

packages/3-targets/3-targets/postgres/src/exports/control.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { ifDefined } from '@prisma-next/utils/defined';
1515
import { postgresTargetDescriptorMeta } from '../core/descriptor-meta';
1616
import { createPostgresMigrationPlanner } from '../core/migrations/planner';
1717
import { renderDefaultLiteral } from '../core/migrations/planner-ddl-builders';
18-
import type { PostgresPlanTargetDetails } from '../core/migrations/planner-types';
18+
import type { PostgresPlanTargetDetails } from '../core/migrations/planner-target-details';
1919
import { createPostgresMigrationRunner } from '../core/migrations/runner';
2020

2121
function buildNativeTypeExpander(

packages/3-targets/3-targets/postgres/test/migrations/fixtures/runner-fixtures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import sqlFamilyDescriptor, {
88
import type { SqlContract, SqlStorage } from '@prisma-next/sql-contract/types';
99
import type { SqlSchemaIR } from '@prisma-next/sql-schema-ir/types';
1010
import { createDevDatabase, timeouts } from '@prisma-next/test-utils';
11-
import type { PostgresPlanTargetDetails } from '../../../src/core/migrations/planner-types';
11+
import type { PostgresPlanTargetDetails } from '../../../src/core/migrations/planner-target-details';
1212
import type { SqlStatement } from '../../../src/core/migrations/statement-builders';
1313
import postgresTargetDescriptor from '../../../src/exports/control';
1414

packages/3-targets/3-targets/postgres/test/migrations/planner.reconciliation-unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
buildExpectedFormatType,
99
constraintExistsCheck,
1010
} from '../../src/core/migrations/planner-sql-checks';
11-
import type { PlanningMode } from '../../src/core/migrations/planner-types';
11+
import type { PlanningMode } from '../../src/core/migrations/planner-target-details';
1212

1313
// ---------------------------------------------------------------------------
1414
// Policies

packages/3-targets/3-targets/postgres/test/migrations/runner.basic.integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { INIT_ADDITIVE_POLICY } from '@prisma-next/family-sql/control';
22
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from 'vitest';
3-
import type { PostgresPlanTargetDetails } from '../../src/core/migrations/planner-types';
3+
import type { PostgresPlanTargetDetails } from '../../src/core/migrations/planner-target-details';
44
import {
55
contract,
66
createDriver,

packages/3-targets/3-targets/postgres/test/migrations/runner.errors.integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { INIT_ADDITIVE_POLICY } from '@prisma-next/family-sql/control';
22
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from 'vitest';
3-
import type { PostgresPlanTargetDetails } from '../../src/core/migrations/planner-types';
3+
import type { PostgresPlanTargetDetails } from '../../src/core/migrations/planner-target-details';
44
import {
55
buildWriteMarkerStatements,
66
ensureLedgerTableStatement,

0 commit comments

Comments
 (0)