@adaptware/eagles-db 0.5.74 → 0.5.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.5.74",
3
+ "version": "0.5.75",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -66,7 +66,7 @@ model ConsentDocumentVersion {
66
66
  document ConsentDocument @relation(fields: [document_id], references: [id], onDelete: Cascade)
67
67
  version_number Int
68
68
  content_hash String
69
- locale String @default("en-IN")
69
+ locale String @default("en")
70
70
  content String @db.Text
71
71
  published_at DateTime?
72
72
  created_at DateTime @default(now())
@@ -43,7 +43,7 @@ CREATE TABLE "ConsentDocumentVersion" (
43
43
  "document_id" TEXT NOT NULL,
44
44
  "version_number" INTEGER NOT NULL,
45
45
  "content_hash" TEXT NOT NULL,
46
- "locale" TEXT NOT NULL DEFAULT 'en-IN',
46
+ "locale" TEXT NOT NULL DEFAULT 'en',
47
47
  "content" TEXT NOT NULL,
48
48
  "published_at" TIMESTAMP(3),
49
49
  "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
@@ -0,0 +1,2 @@
1
+ -- Align ConsentDocumentVersion.locale default with schema (review PR #180).
2
+ ALTER TABLE "ConsentDocumentVersion" ALTER COLUMN "locale" SET DEFAULT 'en';