@bslau/hmm_prisma_schema 1.19.1 → 1.21.0
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,22 @@
|
|
|
1
|
+
BEGIN TRY
|
|
2
|
+
|
|
3
|
+
BEGIN TRAN;
|
|
4
|
+
|
|
5
|
+
-- DropIndex
|
|
6
|
+
ALTER TABLE [dbo].[HotMetal] DROP CONSTRAINT [HotMetal_castSequence_torpedoId_key];
|
|
7
|
+
|
|
8
|
+
-- AlterTable
|
|
9
|
+
ALTER TABLE [dbo].[HotMetal] ALTER COLUMN [torpedoId] INT NULL;
|
|
10
|
+
|
|
11
|
+
COMMIT TRAN;
|
|
12
|
+
|
|
13
|
+
END TRY
|
|
14
|
+
BEGIN CATCH
|
|
15
|
+
|
|
16
|
+
IF @@TRANCOUNT > 0
|
|
17
|
+
BEGIN
|
|
18
|
+
ROLLBACK TRAN;
|
|
19
|
+
END;
|
|
20
|
+
THROW
|
|
21
|
+
|
|
22
|
+
END CATCH
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- A unique constraint covering the columns `[castSequence,torpedoId]` on the table `HotMetal` will be added. If there are existing duplicate values, this will fail.
|
|
5
|
+
- Made the column `torpedoId` on table `HotMetal` required. This step will fail if there are existing NULL values in that column.
|
|
6
|
+
|
|
7
|
+
*/
|
|
8
|
+
BEGIN TRY
|
|
9
|
+
|
|
10
|
+
BEGIN TRAN;
|
|
11
|
+
|
|
12
|
+
-- AlterTable
|
|
13
|
+
ALTER TABLE [dbo].[HotMetal] ALTER COLUMN [torpedoId] INT NOT NULL;
|
|
14
|
+
|
|
15
|
+
-- CreateIndex
|
|
16
|
+
ALTER TABLE [dbo].[HotMetal] ADD CONSTRAINT [HotMetal_castSequence_torpedoId_key] UNIQUE NONCLUSTERED ([castSequence], [torpedoId]);
|
|
17
|
+
|
|
18
|
+
COMMIT TRAN;
|
|
19
|
+
|
|
20
|
+
END TRY
|
|
21
|
+
BEGIN CATCH
|
|
22
|
+
|
|
23
|
+
IF @@TRANCOUNT > 0
|
|
24
|
+
BEGIN
|
|
25
|
+
ROLLBACK TRAN;
|
|
26
|
+
END;
|
|
27
|
+
THROW
|
|
28
|
+
|
|
29
|
+
END CATCH
|