From 7b7f65da39b0766dcc1f52ea54865a0d61f81576 Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 15 Sep 2025 11:13:31 -0700 Subject: [PATCH] Add default to siteResources niceId --- server/setup/scriptsSqlite/1.10.0.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/setup/scriptsSqlite/1.10.0.ts b/server/setup/scriptsSqlite/1.10.0.ts index 41833ac6..1ca7d322 100644 --- a/server/setup/scriptsSqlite/1.10.0.ts +++ b/server/setup/scriptsSqlite/1.10.0.ts @@ -32,11 +32,11 @@ export default async function migration() { ALTER TABLE 'exitNodes' ADD 'region' text; ALTER TABLE 'idpOidcConfig' ADD 'variant' text DEFAULT 'oidc' NOT NULL; ALTER TABLE 'resources' ADD 'niceId' text DEFAULT '' NOT NULL; + ALTER TABLE 'siteResources' ADD 'niceId' text DEFAULT '' NOT NULL; ALTER TABLE 'userOrgs' ADD 'autoProvisioned' integer DEFAULT false; ALTER TABLE 'targets' ADD 'pathMatchType' text; ALTER TABLE 'targets' ADD 'path' text; ALTER TABLE 'resources' ADD 'headers' text; - ALTER TABLE 'siteResources' ADD 'niceId' text NOT NULL; `); // this diverges from the schema a bit because the schema does not have a default on niceId but was required for the migration and I dont think it will effect much down the line... const usedNiceIds: string[] = [];