@bslau/hmm_prisma_schema 1.3.2 → 1.3.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].[Station] ADD [oos] BIT NOT NULL CONSTRAINT [Station_oos_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/schema.prisma
CHANGED
|
@@ -325,6 +325,8 @@ model Station {
|
|
|
325
325
|
id Int @id @default(autoincrement())
|
|
326
326
|
name String
|
|
327
327
|
value String @unique
|
|
328
|
+
oos Boolean @default(false)
|
|
329
|
+
comment String?
|
|
328
330
|
createdAt DateTime @default(now())
|
|
329
331
|
updatedAt DateTime @updatedAt
|
|
330
332
|
torpedoLocations TorpedoLocation[]
|