From b49f937dcb742ce47a2f4d5e031ef6df9012a6d1 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Wed, 4 Jun 2025 23:35:02 +0100 Subject: [PATCH] chore: rename address to building location --- src/lib/database.d.ts | 6 +++--- src/routes/space/+page.svelte | 12 ++++++------ src/routes/space/[id]/+page.svelte | 2 +- .../20250604223126_rename_address_to_location.sql | 1 + supabase/schemas/0001_study_spaces.sql | 2 +- 5 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 supabase/migrations/20250604223126_rename_address_to_location.sql diff --git a/src/lib/database.d.ts b/src/lib/database.d.ts index 88ee7ec..b254ea8 100644 --- a/src/lib/database.d.ts +++ b/src/lib/database.d.ts @@ -65,7 +65,7 @@ export type Database = { } study_spaces: { Row: { - building_address: string | null + building_location: string | null created_at: string | null description: string | null id: string @@ -73,7 +73,7 @@ export type Database = { updated_at: string | null } Insert: { - building_address?: string | null + building_location?: string | null created_at?: string | null description?: string | null id?: string @@ -81,7 +81,7 @@ export type Database = { updated_at?: string | null } Update: { - building_address?: string | null + building_location?: string | null created_at?: string | null description?: string | null id?: string diff --git a/src/routes/space/+page.svelte b/src/routes/space/+page.svelte index 483ebef..46af12f 100644 --- a/src/routes/space/+page.svelte +++ b/src/routes/space/+page.svelte @@ -14,7 +14,7 @@ let spaceImg = $state(); let studySpaceData = $state, "id" | "created_at" | "updated_at">>({ description: "", - building_address: "", + building_location: "", location: "" }); @@ -81,16 +81,16 @@