From f0139a5fb322e96611dab10c10856eb0dcbac400 Mon Sep 17 00:00:00 2001 From: Antony David Date: Tue, 11 Jun 2024 13:52:51 +0200 Subject: [PATCH] fix(polls): missing foreign key (#190) --- apps/api/package.json | 6 +- pnpm-lock.yaml | 62 +++++++++---------- .../20240610173246_assemblies_status.sql | 2 + supabase/package.json | 2 +- 4 files changed, 37 insertions(+), 35 deletions(-) diff --git a/apps/api/package.json b/apps/api/package.json index 3e92e7cd..6dd58416 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -21,7 +21,7 @@ "@hono/zod-validator": "^0.2.2", "@repo/types": "workspace:*", "@supabase/supabase-js": "^2.43.4", - "hono": "^4.4.4", + "hono": "^4.4.5", "stripe": "^15.10.0", "zod": "^3.23.8", "zod-validation-error": "^3.3.0" @@ -31,8 +31,8 @@ "@repo/typescript-config": "workspace:*", "@types/node": "^20.14.2", "@types/swagger-ui-dist": "^3.30.4", - "supabase": "^1.172.2", - "tsx": "^4.15.1", + "supabase": "^1.176.2", + "tsx": "^4.15.2", "typescript": "^5.4.5", "vitest": "^1.6.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d26de89b..a8375638 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -98,13 +98,13 @@ importers: version: 1.11.2 '@hono/swagger-ui': specifier: ^0.2.2 - version: 0.2.2(hono@4.4.4) + version: 0.2.2(hono@4.4.5) '@hono/zod-openapi': specifier: 0.14.2 - version: 0.14.2(hono@4.4.4)(zod@3.23.8) + version: 0.14.2(hono@4.4.5)(zod@3.23.8) '@hono/zod-validator': specifier: ^0.2.2 - version: 0.2.2(hono@4.4.4)(zod@3.23.8) + version: 0.2.2(hono@4.4.5)(zod@3.23.8) '@repo/types': specifier: workspace:* version: link:../../packages/types @@ -112,8 +112,8 @@ importers: specifier: ^2.43.4 version: 2.43.4 hono: - specifier: ^4.4.4 - version: 4.4.4 + specifier: ^4.4.5 + version: 4.4.5 stripe: specifier: ^15.10.0 version: 15.10.0 @@ -137,11 +137,11 @@ importers: specifier: ^3.30.4 version: 3.30.4 supabase: - specifier: ^1.172.2 - version: 1.172.2 + specifier: ^1.176.2 + version: 1.176.2 tsx: - specifier: ^4.15.1 - version: 4.15.1 + specifier: ^4.15.2 + version: 4.15.2 typescript: specifier: ^5.4.5 version: 5.4.5 @@ -357,8 +357,8 @@ importers: specifier: workspace:* version: link:../packages/typescript-config supabase: - specifier: ^1.172.2 - version: 1.172.2 + specifier: ^1.176.2 + version: 1.176.2 packages: @@ -2549,8 +2549,8 @@ packages: eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - electron-to-chromium@1.4.796: - resolution: {integrity: sha512-NglN/xprcM+SHD2XCli4oC6bWe6kHoytcyLKCWXmRL854F0qhPhaYgUswUsglnPxYaNQIg2uMY4BvaomIf3kLA==} + electron-to-chromium@1.4.798: + resolution: {integrity: sha512-by9J2CiM9KPGj9qfp5U4FcPSbXJG7FNzqnYaY4WLzX+v2PHieVGmnsA4dxfpGE3QEC7JofpPZmn7Vn1B9NR2+Q==} emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -2761,8 +2761,8 @@ packages: header-case@1.0.1: resolution: {integrity: sha512-i0q9mkOeSuhXw6bGgiQCCBgY/jlZuV/7dZXyZ9c6LcBrqwvT8eT719E9uxE5LiZftdl+z81Ugbg/VvXV4OJOeQ==} - hono@4.4.4: - resolution: {integrity: sha512-zO5+4K8yf1iuKhBZhwmpZ/0LzPMr8Zt1RugEGM1xvOqgh9DyLb7tslOtoBks4bmm5bIcLtzLCXUpYpXOkwpABA==} + hono@4.4.5: + resolution: {integrity: sha512-hyf+1c+gTEo0+xjdYT2e8y4M3HcEy0ARuRZHPRgeRhq/mupkI4j9/qEWVKsyj0se4KhfRnYrld4Tk6z/9veq/Q==} engines: {node: '>=16.0.0'} http-proxy-agent@7.0.2: @@ -3597,8 +3597,8 @@ packages: engines: {node: '>=16 || 14 >=14.17'} hasBin: true - supabase@1.172.2: - resolution: {integrity: sha512-h2J6kKEikXnZyurUcCYg215qkQpINOhdWkiclHcWAuVeqXsNrfrYaf1s0qbbcdRyMtrVW48I+VdVTw71Cnn20Q==} + supabase@1.176.2: + resolution: {integrity: sha512-SsxKtsurdr6b50kkOze7pRYlzZkvCNZNObq+KZjVtI6yNKRBgD8Ns0xmlI5RiNTb19JNeKZU4iONqMQRUJpbQA==} engines: {npm: '>=8'} hasBin: true @@ -3701,8 +3701,8 @@ packages: tslib@2.6.3: resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} - tsx@4.15.1: - resolution: {integrity: sha512-k/6h17jA1KfUR7SpcteOa880zGmF56s8gMIcSqUR5avyNFi9nlCEKpMiHLrzrqyARGr52A/JablmGey1DEWbCA==} + tsx@4.15.2: + resolution: {integrity: sha512-kIZTOCmR37nEw0qxQks2dR+eZWSXydhTGmz7yx94vEiJtJGBTkUl0D/jt/5fey+CNdm6i3Cp+29WKRay9ScQUw==} engines: {node: '>=18.0.0'} hasBin: true @@ -4200,20 +4200,20 @@ snapshots: '@hono/node-server@1.11.2': {} - '@hono/swagger-ui@0.2.2(hono@4.4.4)': + '@hono/swagger-ui@0.2.2(hono@4.4.5)': dependencies: - hono: 4.4.4 + hono: 4.4.5 - '@hono/zod-openapi@0.14.2(hono@4.4.4)(zod@3.23.8)': + '@hono/zod-openapi@0.14.2(hono@4.4.5)(zod@3.23.8)': dependencies: '@asteasolutions/zod-to-openapi': 7.0.0(zod@3.23.8) - '@hono/zod-validator': 0.2.2(hono@4.4.4)(zod@3.23.8) - hono: 4.4.4 + '@hono/zod-validator': 0.2.2(hono@4.4.5)(zod@3.23.8) + hono: 4.4.5 zod: 3.23.8 - '@hono/zod-validator@0.2.2(hono@4.4.4)(zod@3.23.8)': + '@hono/zod-validator@0.2.2(hono@4.4.5)(zod@3.23.8)': dependencies: - hono: 4.4.4 + hono: 4.4.5 zod: 3.23.8 '@hookform/resolvers@3.6.0(react-hook-form@7.51.5(react@18.3.1))': @@ -6110,7 +6110,7 @@ snapshots: browserslist@4.23.1: dependencies: caniuse-lite: 1.0.30001632 - electron-to-chromium: 1.4.796 + electron-to-chromium: 1.4.798 node-releases: 2.0.14 update-browserslist-db: 1.0.16(browserslist@4.23.1) @@ -6402,7 +6402,7 @@ snapshots: eastasianwidth@0.2.0: {} - electron-to-chromium@1.4.796: {} + electron-to-chromium@1.4.798: {} emoji-regex@8.0.0: {} @@ -6683,7 +6683,7 @@ snapshots: no-case: 2.3.2 upper-case: 1.1.3 - hono@4.4.4: {} + hono@4.4.5: {} http-proxy-agent@7.0.2: dependencies: @@ -7608,7 +7608,7 @@ snapshots: pirates: 4.0.6 ts-interface-checker: 0.1.13 - supabase@1.172.2: + supabase@1.176.2: dependencies: bin-links: 4.0.4 https-proxy-agent: 7.0.4 @@ -7740,7 +7740,7 @@ snapshots: tslib@2.6.3: {} - tsx@4.15.1: + tsx@4.15.2: dependencies: esbuild: 0.21.5 get-tsconfig: 4.7.5 diff --git a/supabase/migrations/20240610173246_assemblies_status.sql b/supabase/migrations/20240610173246_assemblies_status.sql index bdd75daf..feac7aeb 100644 --- a/supabase/migrations/20240610173246_assemblies_status.sql +++ b/supabase/migrations/20240610173246_assemblies_status.sql @@ -1 +1,3 @@ alter table "public"."ASSEMBLIES" add column "closed" boolean not null default false; +ALTER TABLE ONLY "public"."POLLS" + ADD CONSTRAINT "public_POLLS_assembly_fkey" FOREIGN KEY ("assembly") REFERENCES "public"."ASSEMBLIES"("id"); diff --git a/supabase/package.json b/supabase/package.json index 8d8d1274..22078f49 100644 --- a/supabase/package.json +++ b/supabase/package.json @@ -14,6 +14,6 @@ "devDependencies": { "@repo/biome-config": "workspace:*", "@repo/typescript-config": "workspace:*", - "supabase": "^1.172.2" + "supabase": "^1.176.2" } }