@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
|
@@ -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
|
package/prisma/schema.prisma
CHANGED
|
@@ -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
|
|
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**
|