mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-15 08:25:01 +02:00
adjusting field description; fix migration script; trying to resolve conflict in updateResource.ts
This commit is contained in:
parent
517bc7f632
commit
64a2cc23c6
3 changed files with 5 additions and 4 deletions
|
@ -16,7 +16,8 @@ import createHttpError from "http-errors";
|
||||||
import logger from "@server/logger";
|
import logger from "@server/logger";
|
||||||
import { fromError } from "zod-validation-error";
|
import { fromError } from "zod-validation-error";
|
||||||
import config from "@server/lib/config";
|
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
|
const updateResourceParamsSchema = z
|
||||||
.object({
|
.object({
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import db from "@server/db";
|
import db from "@server/db";
|
||||||
import { sql } from "drizzle-orm";
|
import { sql } from "drizzle-orm";
|
||||||
|
|
||||||
const version = "1.1.0";
|
const version = "1.3.0";
|
||||||
|
|
||||||
export default async function migration() {
|
export default async function migration() {
|
||||||
console.log(`Running setup script ${version}...`);
|
console.log(`Running setup script ${version}...`);
|
||||||
|
@ -9,7 +9,7 @@ export default async function migration() {
|
||||||
try {
|
try {
|
||||||
db.transaction((trx) => {
|
db.transaction((trx) => {
|
||||||
trx.run(
|
trx.run(
|
||||||
sql`ALTER TABLE 'resources' ADD 'tlsServerName' integer DEFAULT '' NOT NULL;`
|
sql`ALTER TABLE 'resources' ADD 'tlsServerName' text DEFAULT '' NOT NULL;`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -565,7 +565,7 @@ export default function GeneralForm() {
|
||||||
</div>
|
</div>
|
||||||
<div className="w-fill space-y-2">
|
<div className="w-fill space-y-2">
|
||||||
<FormLabel>
|
<FormLabel>
|
||||||
TLS Server Name
|
TLS Server Name (optional)
|
||||||
</FormLabel>
|
</FormLabel>
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue