-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0dfe56
commit de0ed77
Showing
3 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
Warnings: | ||
- You are about to alter the column `description` on the `Proposal` table. The data in that column could be lost. The data in that column will be cast from `NVarChar(1000)` to `Text`. | ||
- You are about to alter the column `motivation` on the `ProposalApplication` table. The data in that column could be lost. The data in that column will be cast from `NVarChar(1000)` to `Text`. | ||
- You are about to alter the column `comment` on the `UserProposalFeedback` table. The data in that column could be lost. The data in that column will be cast from `NVarChar(1000)` to `Text`. | ||
*/ | ||
BEGIN TRY | ||
|
||
BEGIN TRAN; | ||
|
||
-- AlterTable | ||
ALTER TABLE [dbo].[Account] ADD [ext_expires_in] INT; | ||
|
||
-- AlterTable | ||
ALTER TABLE [dbo].[Proposal] ALTER COLUMN [description] TEXT NOT NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE [dbo].[ProposalApplication] ALTER COLUMN [motivation] TEXT NOT NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE [dbo].[UserProposalFeedback] ALTER COLUMN [comment] TEXT NOT NULL; | ||
|
||
COMMIT TRAN; | ||
|
||
END TRY | ||
BEGIN CATCH | ||
|
||
IF @@TRANCOUNT > 0 | ||
BEGIN | ||
ROLLBACK TRAN; | ||
END; | ||
THROW | ||
|
||
END CATCH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters