@bslau/hmm_prisma_schema 1.1.22 → 1.1.23
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,20 @@
|
|
|
1
|
+
BEGIN TRY
|
|
2
|
+
|
|
3
|
+
BEGIN TRAN;
|
|
4
|
+
|
|
5
|
+
-- AlterTable
|
|
6
|
+
ALTER TABLE [dbo].[Torpedo] ADD [capacityDynamic] FLOAT(53),
|
|
7
|
+
[capacityNominal] FLOAT(53) NOT NULL CONSTRAINT [Torpedo_capacityNominal_df] DEFAULT 200;
|
|
8
|
+
|
|
9
|
+
COMMIT TRAN;
|
|
10
|
+
|
|
11
|
+
END TRY
|
|
12
|
+
BEGIN CATCH
|
|
13
|
+
|
|
14
|
+
IF @@TRANCOUNT > 0
|
|
15
|
+
BEGIN
|
|
16
|
+
ROLLBACK TRAN;
|
|
17
|
+
END;
|
|
18
|
+
THROW
|
|
19
|
+
|
|
20
|
+
END CATCH
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `capacityDynamic` on the `Torpedo` table. All the data in the column will be lost.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
BEGIN TRY
|
|
8
|
+
|
|
9
|
+
BEGIN TRAN;
|
|
10
|
+
|
|
11
|
+
-- AlterTable
|
|
12
|
+
ALTER TABLE [dbo].[Torpedo] DROP COLUMN [capacityDynamic];
|
|
13
|
+
ALTER TABLE [dbo].[Torpedo] ADD [capacityAverage] FLOAT(53);
|
|
14
|
+
|
|
15
|
+
COMMIT TRAN;
|
|
16
|
+
|
|
17
|
+
END TRY
|
|
18
|
+
BEGIN CATCH
|
|
19
|
+
|
|
20
|
+
IF @@TRANCOUNT > 0
|
|
21
|
+
BEGIN
|
|
22
|
+
ROLLBACK TRAN;
|
|
23
|
+
END;
|
|
24
|
+
THROW
|
|
25
|
+
|
|
26
|
+
END CATCH
|
package/prisma/schema.prisma
CHANGED
|
@@ -325,8 +325,8 @@ model Torpedo {
|
|
|
325
325
|
sixPitRestrictionEndTime DateTime? @db.DateTimeOffset
|
|
326
326
|
status Int @default(2)
|
|
327
327
|
// sixPitStart DateTime?
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
capacityAverage Float?
|
|
329
|
+
capacityNominal Float @default(200)
|
|
330
330
|
// comments String?
|
|
331
331
|
// emptyWeight Float?
|
|
332
332
|
// gasStart DateTime?
|