Skip to content

Commit

Permalink
chore(app/prisma/solutions): add publication & usage boolean, update …
Browse files Browse the repository at this point in the history
…Status with GRADING & WITHDRAWN (#33)
  • Loading branch information
mxmlnwbr authored Mar 20, 2024
1 parent 9ac34f8 commit 742d7af
Show file tree
Hide file tree
Showing 10 changed files with 172 additions and 149 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NEXT_PUBLIC_APP_URL=localhost:3000
NEXT_PUBLIC_FORMS_URL_PUBLISH="https://forms.office.com/Pages/ResponsePage.aspx?id=2zjkx2LkIkypCsNYsWmAs0LFaOQJoXlHrbsK8Pa1si9UOFBGVEI2SlY2WEVQRUc0VUFIRUdKNDE5QSQlQCN0PWcu"
NEXT_PUBLIC_FORMS_URL_SUBMIT="https://forms.office.com/Pages/ResponsePage.aspx?id=2zjkx2LkIkypCsNYsWmAs0LFaOQJoXlHrbsK8Pa1si9URUhYTFNWUUdTT0lVUFRCVkJUVEsyWTdBMSQlQCN0PWcu"
NEXT_PUBLIC_FORMS_URL_SUBMIT="https://forms.office.com/Pages/ResponsePage.aspx?id=2zjkx2LkIkypCsNYsWmAs0LFaOQJoXlHrbsK8Pa1si9UMlJPNEE1SFFVU004RkhMSEVERUlWV1ZKTyQlQCN0PWcu"
NEXT_PUBLIC_BLOBSERVICECLIENT_URL="https://thesisplatformdev.blob.core.windows.net/uploads?"
APPLICATION_URL="https://prod-16.switzerlandnorth.logic.azure.com:443/workflows/59277f26083740e5bff291f9b93ae017/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=YoKvNPy9vcURljhJzSxEEaWVIO1J_PJYJJ0j38xfGOw"
PROPOSAL_FEEDBACK_URL="https://prod-14.switzerlandnorth.logic.azure.com:443/workflows/df4d7fd584834de1bcac66150f2d7e15/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=zVrizkBYfyIikgpVkQmNAM2IOJ8eHfJpvIvr7tdC3hc"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
Warnings:
- The values [UNDER_REVIEW] on the enum `AdminInfo_status` will be removed. If these variants are still used in the database, this will fail.
*/
-- AlterTable
ALTER TABLE `admininfo` MODIFY `status` ENUM('OPEN', 'SUBMITTED', 'IN_PROGRESS', 'GRADING', 'WITHDRAWN', 'COMPLETED') NULL;

-- AlterTable
ALTER TABLE `proposalapplication` ADD COLUMN `allowPublication` BOOLEAN NULL,
ADD COLUMN `allowUsage` BOOLEAN NULL;
6 changes: 5 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ model ProposalApplication {
supervision UserProposalSupervision? @relation(fields: [supervisionId], references: [id], onUpdate: NoAction, onDelete: NoAction)
supervisionId String?
allowPublication Boolean?
allowUsage Boolean?
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
Expand Down Expand Up @@ -220,7 +223,8 @@ enum Status {
OPEN
SUBMITTED
IN_PROGRESS
UNDER_REVIEW
GRADING
WITHDRAWN
COMPLETED
}

Expand Down
Binary file modified solutions/UZHBFThesisPlatform.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion solutions/UZHBFThesisPlatform/Other/Solution.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<ImportExportXml version="9.2.24024.178" SolutionPackageVersion="9.2" languagecode="1033" generatedBy="CrmLive" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ImportExportXml version="9.2.24031.170" SolutionPackageVersion="9.2" languagecode="1033" generatedBy="CrmLive" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SolutionManifest>
<UniqueName>UZHBFThesisPlatform</UniqueName>
<LocalizedNames>
Expand Down
Loading

0 comments on commit 742d7af

Please sign in to comment.