Skip to content

Commit

Permalink
Add Minimal as a new priority
Browse files Browse the repository at this point in the history
This was a feature request by @Computerkrack
  • Loading branch information
Dlurak committed Apr 9, 2024
1 parent 812fc46 commit 9ce7de2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dbschema/default.esdl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ module default {
};
}

scalar type Priority extending enum<Critical, High, Medium, Low>;
scalar type Priority extending enum<Critical, High, Medium, Low, Minimal>;

type Calendar {
required class: Class {
Expand Down
5 changes: 5 additions & 0 deletions dbschema/migrations/00018.edgeql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE MIGRATION m1xsbfzwxprtxttepfmhlwzsayxv3keyigzrfa2o2zk3g4zttajubq
ONTO m1sty7i6q5winkndbyoecud6k7wkx6cd7hvlg4yx5d3ncwdjlbba3q
{
ALTER SCALAR TYPE default::Priority EXTENDING enum<Critical, High, Medium, Low, Minimal>;
};
1 change: 1 addition & 0 deletions src/routes/calendar/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const createCalendar = new Elysia()
t.Literal("High"),
t.Literal("Medium"),
t.Literal("Low"),
t.Literal("Minimal"),
]),
),
}),
Expand Down

0 comments on commit 9ce7de2

Please sign in to comment.