From adbcd1a2e0a85df14d8122b332c2c7f44926ea3d Mon Sep 17 00:00:00 2001 From: Owen Date: Sun, 24 Aug 2025 13:51:03 -0700 Subject: [PATCH] Add missing cols --- server/setup/scriptsPg/1.9.0.ts | 6 ++++++ t | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 t diff --git a/server/setup/scriptsPg/1.9.0.ts b/server/setup/scriptsPg/1.9.0.ts index a25bd780..01eb4795 100644 --- a/server/setup/scriptsPg/1.9.0.ts +++ b/server/setup/scriptsPg/1.9.0.ts @@ -58,6 +58,12 @@ export default async function migration() { await db.execute(sql`ALTER TABLE "clientSites" ADD COLUMN "endpoint" varchar;`); + await db.execute(sql`ALTER TABLE "exitNodes" ADD COLUMN "online" integer DEFAULT false NOT NULL;`); + + await db.execute(sql`ALTER TABLE "exitNodes" ADD COLUMN "lastPing" integer;`); + + await db.execute(sql`ALTER TABLE "exitNodes" ADD COLUMN "type" text DEFAULT 'gerbil';`); + await db.execute(sql`ALTER TABLE "olms" ADD COLUMN "version" text;`); await db.execute(sql`ALTER TABLE "orgs" ADD COLUMN "createdAt" text;`); diff --git a/t b/t new file mode 100644 index 00000000..d959bc29 --- /dev/null +++ b/t @@ -0,0 +1,4 @@ +docker buildx build --build-arg DATABASE=sqlite --platform linux/arm64,linux/amd64 -t fosrl/pangolin:latest --push . +docker buildx build --build-arg DATABASE=sqlite --platform linux/arm64,linux/amd64 -t fosrl/pangolin:1.9.0 --push . +docker buildx build --build-arg DATABASE=pg --platform linux/arm64,linux/amd64 -t fosrl/pangolin:postgresql-latest --push . +docker buildx build --build-arg DATABASE=pg --platform linux/arm64,linux/amd64 -t fosrl/pangolin:postgresql-1.9.0 --push .