From 511259ed10319abad9e2a1ef796a5dcbc325c3cd Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Wed, 24 May 2023 09:25:39 +0300 Subject: [PATCH] fixed missing view id field error message typo --- CHANGELOG.md | 2 ++ daos/view.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b282e677..80fa601f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ - Auto register the initial generated snapshot migration to prevent incorrectly reapplying the snapshot on container restart ([#2551](https://github.com/pocketbase/pocketbase/discussions/2551)). +- Fixed missing view id field error message typo. + ## v0.16.1 diff --git a/daos/view.go b/daos/view.go index 0181ee0f..421b4fab 100644 --- a/daos/view.go +++ b/daos/view.go @@ -127,7 +127,7 @@ func (dao *Dao) CreateViewSchema(selectQuery string) (schema.Schema, error) { } if !hasId { - return errors.New("missing required id column (you ca use `(ROW_NUMBER() OVER()) as id` if you don't have one)") + return errors.New("missing required id column (you can use `(ROW_NUMBER() OVER()) as id` if you don't have one)") } return nil