@bslau/hmm_prisma_schema 1.1.8 → 1.1.9

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.1.8",
3
+ "version": "1.1.9",
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].[Torpedo] ADD CONSTRAINT [Torpedo_status_df] DEFAULT 2 FOR [status];
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,25 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - Made the column `status` on table `Torpedo` required. This step will fail if there are existing NULL values in that column.
5
+
6
+ */
7
+ BEGIN TRY
8
+
9
+ BEGIN TRAN;
10
+
11
+ -- AlterTable
12
+ ALTER TABLE [dbo].[Torpedo] ALTER COLUMN [status] INT NOT NULL;
13
+
14
+ COMMIT TRAN;
15
+
16
+ END TRY
17
+ BEGIN CATCH
18
+
19
+ IF @@TRANCOUNT > 0
20
+ BEGIN
21
+ ROLLBACK TRAN;
22
+ END;
23
+ THROW
24
+
25
+ END CATCH
@@ -126,7 +126,7 @@ model Torpedo {
126
126
  onGasEndDate DateTime? @db.DateTimeOffset
127
127
  sixPitRestrictionFlag Boolean @default(false)
128
128
  sixPitRestrictionEndTime DateTime? @db.DateTimeOffset
129
- status Int?
129
+ status Int @default(2)
130
130
  // sixPitStart DateTime?
131
131
  // capacityDynamic Float?
132
132
  // capacityNominal Float?