@bslau/hmm_prisma_schema 1.8.0 → 1.8.2

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/README.md CHANGED
@@ -35,7 +35,7 @@ The workaround is to manually execute these steps after release. This example de
35
35
 
36
36
  - Open a bash terminal and navigate to the installed package:
37
37
 
38
- `cd /c/inetpub/wwwroot/hmm/graphql_server/node_modules/@bslau/hmm_prisma_schema`
38
+ `C:\inetpub\wwwroot\hmm\graphql_server\node_modules\@bslau\hmm_prisma_schema`
39
39
 
40
40
  - Apply any pending migrations: `npm run prisma:deploy`
41
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bslau/hmm_prisma_schema",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "main": "index.js",
5
5
  "author": "CIPA Development Team",
6
6
  "license": "ISC",
@@ -0,0 +1,19 @@
1
+ BEGIN TRY
2
+
3
+ BEGIN TRAN;
4
+
5
+ -- AlterTable
6
+ ALTER TABLE [dbo].[HotMetal] ADD [pourStatus] INT NOT NULL CONSTRAINT [HotMetal_pourStatus_df] DEFAULT 0;
7
+
8
+ COMMIT TRAN;
9
+
10
+ END TRY
11
+ BEGIN CATCH
12
+
13
+ IF @@TRANCOUNT > 0
14
+ BEGIN
15
+ ROLLBACK TRAN;
16
+ END;
17
+ THROW
18
+
19
+ END CATCH
@@ -0,0 +1,19 @@
1
+ BEGIN TRY
2
+
3
+ BEGIN TRAN;
4
+
5
+ -- DropIndex
6
+ ALTER TABLE [dbo].[HMHLadleSurvey] DROP CONSTRAINT [HMHLadleSurvey_activeCampaignId_key];
7
+
8
+ COMMIT TRAN;
9
+
10
+ END TRY
11
+ BEGIN CATCH
12
+
13
+ IF @@TRANCOUNT > 0
14
+ BEGIN
15
+ ROLLBACK TRAN;
16
+ END;
17
+ THROW
18
+
19
+ END CATCH
@@ -154,7 +154,7 @@ model HMHLadleSurvey {
154
154
  comment String?
155
155
  resetOnLining Boolean @default(false)
156
156
  activeCampaign TorpedoCampaign? @relation(fields: [activeCampaignId], references: [id], onDelete: NoAction, onUpdate: NoAction)
157
- activeCampaignId Int? @unique
157
+ activeCampaignId Int?
158
158
  userId String?
159
159
  createdAt DateTime @default(now())
160
160
  updatedAt DateTime? @updatedAt
@@ -204,6 +204,7 @@ model HotMetal {
204
204
  containsPunchOut Boolean @default(false)
205
205
  alPucksAdded Boolean @default(false)
206
206
  integrationStage Int @default(0)
207
+ pourStatus Int @default(0)
207
208
  createdAt DateTime @default(now())
208
209
  updatedAt DateTime @updatedAt
209
210
 
@@ -368,14 +369,14 @@ model Torpedo {
368
369
  /// This indicates the entire refractory lining (or just working lining) is
369
370
  /// removed and the tonnes and trips on the lining are reset.
370
371
  model TorpedoCampaign {
371
- id Int @id @default(autoincrement())
372
- torpedo Torpedo @relation(fields: [torpedoId], references: [torpedoId], onDelete: NoAction, onUpdate: Cascade)
372
+ id Int @id @default(autoincrement())
373
+ torpedo Torpedo @relation(fields: [torpedoId], references: [torpedoId], onDelete: NoAction, onUpdate: Cascade)
373
374
  torpedoId Int
374
375
  torpedoTrips TorpedoTrip[]
375
- hmhLadleSurvey HMHLadleSurvey?
376
- isRebricking Boolean @default(false)
377
- startTime DateTime @default(now()) @db.DateTimeOffset
378
- endTime DateTime? @db.DateTimeOffset
376
+ hmhLadleSurvey HMHLadleSurvey[]
377
+ isRebricking Boolean @default(false)
378
+ startTime DateTime @default(now()) @db.DateTimeOffset
379
+ endTime DateTime? @db.DateTimeOffset
379
380
  }
380
381
 
381
382
  /// **TORPEDO COMMENT**