Skip to content

Commit

Permalink
enhance: add time frame to DB schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rschlaefli committed Dec 5, 2022
1 parent e477650 commit 36a1095
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adaptive_card.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"version": "1.0",
"body": [
{
"type": "TextBlock",
Expand All @@ -191,7 +191,7 @@
"wrap": true,
"separator": true
},
{
{
"type": "TextBlock",
"text": "@{body('GetResponseDetails')?['r60d760e8828645cc84d8fde2a6fe3b27']}",
"wrap": true,
Expand Down
25 changes: 25 additions & 0 deletions prisma/migrations/20221205180831_time_frame/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
Warnings:
- Added the required column `timeFrame` to the `Proposal` table without a default value. This is not possible if the table is not empty.
*/
BEGIN TRY

BEGIN TRAN;

-- AlterTable
ALTER TABLE [dbo].[Proposal] ADD [timeFrame] NVARCHAR(1000) NOT NULL;

COMMIT TRAN;

END TRY
BEGIN CATCH

IF @@TRANCOUNT > 0
BEGIN
ROLLBACK TRAN;
END;
THROW

END CATCH
1 change: 1 addition & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ model Proposal {
description String
language String
studyLevel String
timeFrame String
topicArea TopicArea @relation(fields: [topicAreaSlug], references: [slug])
topicAreaSlug String
Expand Down

0 comments on commit 36a1095

Please sign in to comment.