@bslau/hmm_prisma_schema 1.15.1 → 1.15.3
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,19 @@
|
|
|
1
|
+
BEGIN TRY
|
|
2
|
+
|
|
3
|
+
BEGIN TRAN;
|
|
4
|
+
|
|
5
|
+
-- AlterTable
|
|
6
|
+
ALTER TABLE [dbo].[PotMetal] ALTER COLUMN [dateConsumed] DATETIMEOFFSET NULL;
|
|
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].[PotMetalPoured] DROP CONSTRAINT [PotMetalPoured_potMetalId_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
|
@@ -389,7 +389,7 @@ model Pot {
|
|
|
389
389
|
model PotMetal {
|
|
390
390
|
id Int @id @default(autoincrement())
|
|
391
391
|
isConsumed Boolean @default(false)
|
|
392
|
-
dateConsumed DateTime
|
|
392
|
+
dateConsumed DateTime? @db.DateTimeOffset
|
|
393
393
|
potMetalPouredCollection PotMetalPoured[]
|
|
394
394
|
potId Int
|
|
395
395
|
pot Pot @relation(references: [id], fields: [potId])
|
|
@@ -404,7 +404,7 @@ model PotMetalPoured {
|
|
|
404
404
|
id Int @id @default(autoincrement())
|
|
405
405
|
isReturnedSteel Boolean @default(false)
|
|
406
406
|
mass Float
|
|
407
|
-
potMetalId Int
|
|
407
|
+
potMetalId Int
|
|
408
408
|
potMetal PotMetal @relation(references: [id], fields: [potMetalId])
|
|
409
409
|
createdAt DateTime @default(now())
|
|
410
410
|
updatedAt DateTime @updatedAt
|