adjusting field description; fix migration script; trying to resolve conflict in updateResource.ts

This commit is contained in:
Matthias Palmetshofer 2025-04-11 09:52:34 +02:00
parent 517bc7f632
commit 64a2cc23c6
No known key found for this signature in database
3 changed files with 5 additions and 4 deletions

View file

@ -16,7 +16,8 @@ import createHttpError from "http-errors";
import logger from "@server/logger";
import { fromError } from "zod-validation-error";
import config from "@server/lib/config";
import { subdomainSchema, tlsNameSchema } from "@server/lib/schemas";
import { tlsNameSchema } from "@server/lib/schemas";
import { subdomainSchema } from "@server/lib/schemas";
const updateResourceParamsSchema = z
.object({

View file

@ -1,7 +1,7 @@
import db from "@server/db";
import { sql } from "drizzle-orm";
const version = "1.1.0";
const version = "1.3.0";
export default async function migration() {
console.log(`Running setup script ${version}...`);
@ -9,7 +9,7 @@ export default async function migration() {
try {
db.transaction((trx) => {
trx.run(
sql`ALTER TABLE 'resources' ADD 'tlsServerName' integer DEFAULT '' NOT NULL;`
sql`ALTER TABLE 'resources' ADD 'tlsServerName' text DEFAULT '' NOT NULL;`
);
});

View file

@ -565,7 +565,7 @@ export default function GeneralForm() {
</div>
<div className="w-fill space-y-2">
<FormLabel>
TLS Server Name
TLS Server Name (optional)
</FormLabel>
<FormField
control={form.control}