@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
|
-
`
|
|
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
|
@@ -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
|
package/prisma/migrations/20250730043550_fix_active_campaign_id_in_hmh_ladle_survey/migration.sql
ADDED
|
@@ -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
|
package/prisma/schema.prisma
CHANGED
|
@@ -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?
|
|
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
|
|
372
|
-
torpedo Torpedo
|
|
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
|
|
377
|
-
startTime DateTime
|
|
378
|
-
endTime DateTime?
|
|
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**
|