Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/unify-tailordb-deploy-on-snapshot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tailor-platform/sdk": patch
---

Fix `tailor deploy` so decimal fields without an explicit `scale` no longer show spurious drift against the platform (which materializes the default `6`). Deploy now plans and applies through the same snapshot pipeline as `tailordb migrate`.
1 change: 1 addition & 0 deletions packages/sdk/src/cli/commands/deploy/deploy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function emptyResults(): PlanResults {
context: {
workspaceId: "ws",
application: {} as PlanResults["tailorDB"]["context"]["application"],
tailorDBInputs: [],
config: {} as PlanResults["tailorDB"]["context"]["config"],
noSchemaCheck: false,
},
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk/src/cli/commands/deploy/tailordb/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,7 @@ describe("applyTailorDB phase separation", () => {
name: "test-app",
tailorDBServices: [mockTailorDBService],
} as unknown as Application,
tailorDBInputs: [],
config: mockConfig,
noSchemaCheck: true, // Skip migration checks in unit tests
},
Expand Down Expand Up @@ -907,6 +908,7 @@ describe("applyTailorDB migration label reconciliation (--no-schema-check)", ()
name: "test-app",
tailorDBServices: [mockTailorDBService],
} as unknown as Application,
tailorDBInputs: [],
config,
noSchemaCheck: true,
},
Expand Down
Loading
Loading