@bslau/hmm_prisma_schema 1.19.1 → 1.20.0

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": "@bslau/hmm_prisma_schema",
3
- "version": "1.19.1",
3
+ "version": "1.20.0",
4
4
  "main": "index.js",
5
5
  "author": "CIPA Development Team",
6
6
  "license": "ISC",
@@ -0,0 +1,22 @@
1
+ BEGIN TRY
2
+
3
+ BEGIN TRAN;
4
+
5
+ -- DropIndex
6
+ ALTER TABLE [dbo].[HotMetal] DROP CONSTRAINT [HotMetal_castSequence_torpedoId_key];
7
+
8
+ -- AlterTable
9
+ ALTER TABLE [dbo].[HotMetal] ALTER COLUMN [torpedoId] INT NULL;
10
+
11
+ COMMIT TRAN;
12
+
13
+ END TRY
14
+ BEGIN CATCH
15
+
16
+ IF @@TRANCOUNT > 0
17
+ BEGIN
18
+ ROLLBACK TRAN;
19
+ END;
20
+ THROW
21
+
22
+ END CATCH
@@ -236,8 +236,8 @@ model HotMetal {
236
236
  mesId Int?
237
237
  cast Cast @relation(fields: [castSequence], references: [sequenceCastBlastFurnace], onDelete: NoAction, onUpdate: Cascade)
238
238
  castSequence Int
239
- torpedo Torpedo @relation(fields: [torpedoId], references: [torpedoId], onDelete: NoAction, onUpdate: Cascade)
240
- torpedoId Int
239
+ torpedo Torpedo? @relation(fields: [torpedoId], references: [torpedoId], onDelete: NoAction, onUpdate: Cascade)
240
+ torpedoId Int?
241
241
  labResult HotMetalLabResult[]
242
242
  torpedoCycle TorpedoCycle[]
243
243
  torpedoTrip TorpedoTrip[]
@@ -274,8 +274,6 @@ model HotMetal {
274
274
  hotMetalPouredCollection HotMetalPoured[]
275
275
  createdAt DateTime @default(now())
276
276
  updatedAt DateTime @updatedAt
277
-
278
- @@unique(name: "cast_torpedo_id", [castSequence, torpedoId])
279
277
  }
280
278
 
281
279
  /// **LAB RESULT**