Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions libs/contract/commands/hosts/create.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ export namespace CreateHostCommand {
})
.min(1, {
message: 'Remark must be at least 1 character',
})
.max(40, {
message: 'Remark must be less than 40 characters',
}),

address: z.string({
Expand Down
3 changes: 0 additions & 3 deletions libs/contract/commands/hosts/update.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ export namespace UpdateHostCommand {
.string({
invalid_type_error: 'Remark must be a string',
})
.max(40, {
message: 'Remark must be less than 40 characters',
})
.optional(),
address: z
.string({
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "hosts"
ALTER COLUMN "remark" SET DATA TYPE TEXT;
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ model NodesUsageHistory {
model Hosts {
uuid String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
viewPosition Int @default(autoincrement()) @map("view_position")
remark String @map("remark") @db.VarChar(50)
remark String @map("remark")
address String @map("address")
port Int @map("port")
path String? @map("path")
Expand Down