diff --git a/apps/docs/content/guides/database/postgres/row-level-security.mdx b/apps/docs/content/guides/database/postgres/row-level-security.mdx index 0e095879d2166..93e4ccf31e0ac 100644 --- a/apps/docs/content/guides/database/postgres/row-level-security.mdx +++ b/apps/docs/content/guides/database/postgres/row-level-security.mdx @@ -104,7 +104,7 @@ Let's say you have a table called `profiles` in the public schema and you want t -- 1. Create table create table profiles ( id uuid primary key, - user_id references auth.users, + user_id uuid references auth.users, avatar_url text ); diff --git a/apps/studio/pages/new/[slug].tsx b/apps/studio/pages/new/[slug].tsx index 99d23500a1b87..203dd05d980a0 100644 --- a/apps/studio/pages/new/[slug].tsx +++ b/apps/studio/pages/new/[slug].tsx @@ -111,6 +111,7 @@ const FormSchema = z.object({ }), projectName: z .string() + .trim() .min(1, 'Please enter a project name.') // Required field check .min(3, 'Project name must be at least 3 characters long.') // Minimum length check .max(64, 'Project name must be no longer than 64 characters.'), // Maximum length check